[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does map-y-or-n-p works in trunk?
From: |
Thierry Volpiatto |
Subject: |
Re: Does map-y-or-n-p works in trunk? |
Date: |
Fri, 12 Jul 2013 11:02:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
This patch fix it, however, the prompt need to be "Even %s ?" and not
"Even ?", this should be fixed too.
diff --git a/lisp/emacs-lisp/map-ynp.el b/lisp/emacs-lisp/map-ynp.el
index 1919d47..0d56222 100644
--- a/lisp/emacs-lisp/map-ynp.el
+++ b/lisp/emacs-lisp/map-ynp.el
@@ -131,8 +131,7 @@ Returns the number of actions taken."
(unwind-protect
(progn
(if (stringp prompter)
- (setq prompter (lambda (object)
- (format prompter object))))
+ (setq prompter `(lambda (object) (format ,prompter object))))
(while (funcall next)
(setq prompt (funcall prompter elt))
(cond ((stringp prompt)
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997