]> code.delx.au - gnu-emacs-elpa/commitdiff
avy.el (avy-goto-char-timer): Obey avy-styles-alist
authorOleh Krehel <ohwoeowho@gmail.com>
Sun, 21 Jun 2015 15:03:18 +0000 (17:03 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sun, 21 Jun 2015 15:04:59 +0000 (17:04 +0200)
Fixes #67

avy.el
doc/Changelog.org

diff --git a/avy.el b/avy.el
index ed55b1c658e4c0bdddd9ffde6c2edcabceff0d52..a8a6a2524e742a972427d0ed19c067298f85679b 100644 (file)
--- a/avy.el
+++ b/avy.el
@@ -934,13 +934,14 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
   (interactive "P")
   (let ((c1 (read-char "char 1: "))
         (c2 (read-char "char 2: " nil avy-timeout-seconds)))
-    (avy--generic-jump
-     (regexp-quote
-      (if c2
-          (string c1 c2)
-        (string c1)))
-     arg
-     avy-style)))
+    (avy--with-avy-keys avy-goto-char-timer
+      (avy--generic-jump
+       (regexp-quote
+        (if c2
+            (string c1 c2)
+          (string c1)))
+       arg
+       avy-style))))
 
 (define-obsolete-variable-alias
     'avy-goto-char-style 'avy-style "0.1.0"
index 19a0ad216c1032959869e0ca37f00d2a37b04a05..7dbcdf10721e38662eb74955cb51373e2e76b2c6 100644 (file)
@@ -164,9 +164,9 @@ See [[https://github.com/abo-abo/avy/issues/57][#57]].
 See the [[https://github.com/abo-abo/avy/wiki/custom-commands][the custom-commands wiki page]] and [[https://github.com/abo-abo/avy/issues/55][#55]].
 
 *** New face setup
-
-New variable =avy-lead-faces= will determine the faces used to color the current decision depth you're in.
-For example, if to select a particular candidate you need to press "abc":
+New variable =avy-lead-faces= will determine the faces used to color
+the current decision depth you're in.  For example, if to select a
+particular candidate you need to press "abc":
 
 - "a" will be highlighted with a face that corresponds to depth 3
 - "b" will be highlighted with a face that corresponds to depth 2
@@ -205,3 +205,7 @@ Use this to restore the previous default behavior:
 #+begin_src elisp
 (setq avy-style 'pre)
 #+end_src
+
+* trunk
+** Fixes
+*** =avy-goto-char-timer= obeys =avy-styles-alist=