diff options
author | Phillip Rulon <pjr@gnu.org> | 1999-10-10 01:22:34 +0000 |
---|---|---|
committer | Phillip Rulon <pjr@gnu.org> | 1999-10-10 01:22:34 +0000 |
commit | b8a944a4abc81c5b62b3215aa9e13f53b1a52cc0 (patch) | |
tree | bdc72a6d38b3eaf2df73fa2fb4b54a08efaf7406 /lisp/map-ynp.el | |
parent | 9cccae20ec752d8d5e1cc23d7cd5079b8a316b36 (diff) | |
download | emacs-b8a944a4abc81c5b62b3215aa9e13f53b1a52cc0.tar.gz |
(map-y-or-n-p): If we read -1, for end of keyboard
macro, try again.
Diffstat (limited to 'lisp/map-ynp.el')
-rw-r--r-- | lisp/map-ynp.el | 6 |
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." (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 |