From f0050fb4e4a3af803ed9d032c5d79243cd5e2c18 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Fri, 6 Mar 2015 12:33:27 +0100 Subject: [PATCH] avy.el (avy-read): Give a more precise error --- avy.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avy.el b/avy.el index 0098b6b..ebaec20 100644 --- a/avy.el +++ b/avy.el @@ -111,7 +111,7 @@ multiple DISPLAY-FN invokations." (if (setq branch (assoc char tree)) (if (eq (car (setq tree (cdr branch))) 'leaf) (throw 'done (cdr tree))) - (user-error "No such candidate") + (signal 'user-error (list "No such candidate" char)) (throw 'done nil)))))) (provide 'avy)