diff options
author | Jim Blandy <jimb@redhat.com> | 1991-12-21 09:14:03 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1991-12-21 09:14:03 +0000 |
commit | aa228418e97d3b6aada0da50ee0419c5c23f726c (patch) | |
tree | 54f5de32b8b44b028fc96ebda21b9d11f96916fe /lisp/map-ynp.el | |
parent | 0231f2dce81e3f5118c5c2eecec6081ba888e03a (diff) | |
download | emacs-aa228418e97d3b6aada0da50ee0419c5c23f726c.tar.gz |
*** empty log message ***
Diffstat (limited to 'lisp/map-ynp.el')
-rw-r--r-- | lisp/map-ynp.el | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lisp/map-ynp.el b/lisp/map-ynp.el index db345d66ef8..606e4a82cb0 100644 --- a/lisp/map-ynp.el +++ b/lisp/map-ynp.el @@ -63,27 +63,27 @@ ESC or q to exit (skip all following objects); . (period) to act on the current object and then exit; or \\[help-command] to get help. Returns the number of actions taken." - (let ((old-help-form help-form) - (help-form (cons 'map-y-or-n-p-help - (or help '("object" "objects" "act on")))) - (actions 0) - prompt - char - elt - (next (if (or (symbolp list) - (subrp list) - (compiled-function-p list) - (and (consp list) - (eq (car list) 'lambda))) - (function (lambda () - (setq elt (funcall list)))) - (function (lambda () - (if list - (progn - (setq elt (car list) - list (cdr list)) - t) - nil)))))) + (let* ((old-help-form help-form) + (help-form (cons 'map-y-or-n-p-help + (or help '("object" "objects" "act on")))) + (actions 0) + prompt + char + elt + (next (if (or (symbolp list) + (subrp list) + (compiled-function-p list) + (and (consp list) + (eq (car list) 'lambda))) + (function (lambda () + (setq elt (funcall list)))) + (function (lambda () + (if list + (progn + (setq elt (car list) + list (cdr list)) + t) + nil)))))) (if (stringp prompter) (setq prompter (` (lambda (object) (format (, prompter) object))))) @@ -122,7 +122,7 @@ Returns the number of actions taken." (progn (funcall actor elt) (setq actions (1+ actions)))) - (while (setq elt (funcall next)) + (while (funcall next) (if (eval (funcall prompter elt)) (progn (funcall actor elt) |