avy.el: Get rid of magic char numbers

This commit is contained in:
Oleh Krehel 2019-08-22 16:32:05 +02:00
parent 66886e265c
commit 01a311ca6a

4
avy.el
View File

@ -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 ??)