emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 24b5137 087/110: Ignore mistyping when no candidates avail


From: Oleh Krehel
Subject: [elpa] master 24b5137 087/110: Ignore mistyping when no candidates available
Date: Sat, 11 May 2019 10:15:50 -0400 (EDT)

branch: master
commit 24b51374bef91cb24ec5993217187bf616fcb663
Author: whatacold <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Ignore mistyping when no candidates available
    
    Fixes #256
---
 avy.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/avy.el b/avy.el
index af6b357..eaade8f 100644
--- a/avy.el
+++ b/avy.el
@@ -459,9 +459,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"
-                                     (if (characterp char) (string char) 
char)))
-           (throw 'done nil)))))
+           (message "No such candidate: %s, hit `C-g' to quit."
+                    (if (characterp char) (string char) char))))))
 
 (defvar avy-handler-function 'avy-handler-default
   "A function to call for a bad `read-key' in `avy-read'.")
@@ -480,7 +479,7 @@ Return nil if not a mouse event."
           (t (selected-window)))))
 
 (defun avy-read (tree display-fn cleanup-fn)
-  "Select a leaf from TREE using consecutive `read-char'.
+  "Select a leaf from TREE using consecutive `read-key'.
 
 DISPLAY-FN should take CHAR and LEAF and signify that LEAFs
 associated with CHAR will be selected if CHAR is pressed.  This is



reply via email to

[Prev in Thread] Current Thread [Next in Thread]