diff --git a/avy.el b/avy.el index 527479f..7c33b98 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 ??)