From 01a311ca6a8669d23dcef2f983bd84f88dd5d7f9 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Thu, 22 Aug 2019 16:32:05 +0200 Subject: [PATCH] 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 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 ??)