comparison 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
comparison
equal deleted inserted replaced
25962:57633cf1db33 25963:cc89cf824a72
147 (message "%s(y, n, !, ., q, %sor %s) " 147 (message "%s(y, n, !, ., q, %sor %s) "
148 prompt user-keys 148 prompt user-keys
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
156 (key-description (vector help-char)) 160 (key-description (vector help-char))
157 (single-key-description char))) 161 (single-key-description char)))