# HG changeset patch # User Phillip Rulon # Date 939518554 0 # Node ID cc89cf824a720296c6cdf91aeb9ac088f773e4ae # Parent 57633cf1db330fb7cafdda5660fd437a6fba04af (map-y-or-n-p): If we read -1, for end of keyboard macro, try again. diff -r 57633cf1db33 -r cc89cf824a72 lisp/map-ynp.el --- 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