]> git.eshelyaron.com Git - emacs.git/commitdiff
(map-y-or-n-p): If we read -1, for end of keyboard
authorPhillip Rulon <pjr@gnu.org>
Sun, 10 Oct 1999 01:22:34 +0000 (01:22 +0000)
committerPhillip Rulon <pjr@gnu.org>
Sun, 10 Oct 1999 01:22:34 +0000 (01:22 +0000)
macro, try again.

lisp/map-ynp.el

index 3180be4d68b826acd8849c6f8d6e55aa31bcedbc..e0b150be721b0bd16afd599494035fff25877058 100644 (file)
@@ -149,7 +149,11 @@ Returns the number of actions taken."
                                (key-description (vector help-char)))
                       (if minibuffer-auto-raise
                           (raise-frame (window-frame (minibuffer-window))))
-                      (setq char (read-event))
+                      (while (progn
+                               (setq char (read-event))
+                               ;; If we get -1, from end of keyboard
+                               ;; macro, try again.
+                               (not (equal char -1))))
                       ;; Show the answer to the question.
                       (message "%s(y, n, !, ., q, %sor %s) %s"
                                prompt user-keys