Mercurial > emacs
changeset 2082:4b05402f3ac5
(map-y-or-n-p): Handle `quit' as answer.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 09 Mar 1993 21:17:46 +0000 |
parents | 2b04be5e47e6 |
children | ff782069e797 |
files | lisp/map-ynp.el |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/map-ynp.el Tue Mar 09 19:53:06 1993 +0000 +++ b/lisp/map-ynp.el Tue Mar 09 21:17:46 1993 +0000 @@ -111,6 +111,7 @@ (setq prompt (funcall prompter elt)) (if (stringp prompt) (progn + (setq quit-flag nil) ;; Prompt the user about this object. (let ((cursor-in-echo-area t)) (message "%s(y, n, !, ., q, %sor %s) " @@ -132,6 +133,11 @@ (funcall actor elt) (setq actions (1+ actions) next (function (lambda () nil)))) + ((eq def 'quit) + (setq quit-flag t) + (setq next (` (lambda () + (setq next '(, next)) + '(, elt))))) ((eq def 'automatic) ;; Act on this and all following objects. (if (eval (funcall prompter elt))