# HG changeset patch # User Richard M. Stallman # Date 731711866 0 # Node ID 4b05402f3ac570506355d16982962d5c343c1221 # Parent 2b04be5e47e6a8d3af98d542244335f23a70af16 (map-y-or-n-p): Handle `quit' as answer. diff -r 2b04be5e47e6 -r 4b05402f3ac5 lisp/map-ynp.el --- 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))