aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Rulon1999-10-10 01:22:34 +0000
committerPhillip Rulon1999-10-10 01:22:34 +0000
commit3f72fac8655baf2940a6be61d59e2a6d7e80ae73 (patch)
tree79a65cf906005a73001bf632bea474e960bd48fc
parentf6ac5659c8b95e561c0f6e4b4b08ca0d46c2a3c3 (diff)
downloademacs-3f72fac8655baf2940a6be61d59e2a6d7e80ae73.tar.gz
emacs-3f72fac8655baf2940a6be61d59e2a6d7e80ae73.zip
(map-y-or-n-p): If we read -1, for end of keyboard
macro, try again.
-rw-r--r--lisp/map-ynp.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/map-ynp.el b/lisp/map-ynp.el
index 3180be4d68b..e0b150be721 100644
--- a/lisp/map-ynp.el
+++ b/lisp/map-ynp.el
@@ -149,7 +149,11 @@ Returns the number of actions taken."
149 (key-description (vector help-char))) 149 (key-description (vector help-char)))
150 (if minibuffer-auto-raise 150 (if minibuffer-auto-raise
151 (raise-frame (window-frame (minibuffer-window)))) 151 (raise-frame (window-frame (minibuffer-window))))
152 (setq char (read-event)) 152 (while (progn
153 (setq char (read-event))
154 ;; If we get -1, from end of keyboard
155 ;; macro, try again.
156 (not (equal char -1))))
153 ;; Show the answer to the question. 157 ;; Show the answer to the question.
154 (message "%s(y, n, !, ., q, %sor %s) %s" 158 (message "%s(y, n, !, ., q, %sor %s) %s"
155 prompt user-keys 159 prompt user-keys