changeset 25963:cc89cf824a72

(map-y-or-n-p): If we read -1, for end of keyboard macro, try again.
author Phillip Rulon <pjr@gnu.org>
date Sun, 10 Oct 1999 01:22:34 +0000
parents 57633cf1db33
children 2a98301789cd
files lisp/map-ynp.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/map-ynp.el	Sun Oct 10 00:42:15 1999 +0000
+++ b/lisp/map-ynp.el	Sun Oct 10 01:22:34 1999 +0000
@@ -149,7 +149,11 @@
 				(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