Mercurial > emacs
diff lisp/map-ynp.el @ 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 | cbe304a26771 |
children | a1b5109f447a |
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