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 | 3f72fac8655baf2940a6be61d59e2a6d7e80ae73 (patch) | |
tree | 79a65cf906005a73001bf632bea474e960bd48fc /lisp/map-ynp.el | |
parent | f6ac5659c8b95e561c0f6e4b4b08ca0d46c2a3c3 (diff) | |
download | emacs-3f72fac8655baf2940a6be61d59e2a6d7e80ae73.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 |