summaryrefslogtreecommitdiff
path: root/lisp/map-ynp.el
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1991-12-21 09:14:03 +0000
committerJim Blandy <jimb@redhat.com>1991-12-21 09:14:03 +0000
commit00ad2293c31faf8b94a445efcfc66861fa053fff (patch)
tree9d012e3dfe03fa3da395b3c53777968f455765ab /lisp/map-ynp.el
parent7b717e2cc33168fd8c94d249b5d44be500998c77 (diff)
downloademacs-00ad2293c31faf8b94a445efcfc66861fa053fff.tar.gz
*** empty log message ***
Diffstat (limited to 'lisp/map-ynp.el')
-rw-r--r--lisp/map-ynp.el44
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)