Display actual character that triggered an error

Fixes #227
This commit is contained in:
Bob Weiner 2017-12-09 23:13:43 -05:00 committed by Oleh Krehel
parent d4aa876154
commit 869261ae81

3
avy.el
View File

@ -427,7 +427,8 @@ KEYS is the path from the root of `avy-tree' to LEAF."
((mouse-event-p char)
(signal 'user-error (list "Mouse event not handled" char)))
(t
(signal 'user-error (list "No such candidate" char))
(signal 'user-error (list "No such candidate"
(if (characterp char) (string char) char)))
(throw 'done nil)))))
(defvar avy-handler-function 'avy-handler-default