mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 05:23:05 +00:00
avy.el: Get rid of magic char numbers
This commit is contained in:
parent
66886e265c
commit
01a311ca6a
4
avy.el
4
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 ??)
|
||||
|
Loading…
x
Reference in New Issue
Block a user