branch: externals/avy
commit 01a311ca6a8669d23dcef2f983bd84f88dd5d7f9
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    avy.el: Get rid of magic char numbers
---
 avy.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/avy.el b/avy.el
index 527479fdb5..7c33b983c9 100644
--- a/avy.el
+++ b/avy.el
@@ -248,7 +248,7 @@ Typically, these modes don't use the text representation."
   "In case there is only one candidate jumps directly to it."
   :type 'boolean)
 
-(defcustom avy-del-last-char-by '(8 127)
+(defcustom avy-del-last-char-by '(?\b ?\d)
   "List of event types, i.e. key presses, that delete the last
 character read.  The default represents `C-h' and `DEL'.  See
 `event-convert-list'."
@@ -453,7 +453,7 @@ KEYS is the path from the root of `avy-tree' to LEAF."
     (cond ((setq dispatch (assoc char avy-dispatch-alist))
            (setq avy-action (cdr dispatch))
            (throw 'done 'restart))
-          ((memq char '(27 ?\C-g))
+          ((memq char '(?\e ?\C-g))
            ;; exit silently
            (throw 'done 'abort))
           ((eq char ??)

Reply via email to