]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs-lisp/map-ynp.el (map-y-or-n-p): Fix last change.
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 12 Jul 2013 09:33:09 +0000 (11:33 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Fri, 12 Jul 2013 09:33:09 +0000 (11:33 +0200)
lisp/ChangeLog
lisp/emacs-lisp/map-ynp.el

index 99e9150cd7befefdb3feb1656ae2eed715483782..da2bda0b17b89fd62f1491dc3cf17908af9b65dc 100644 (file)
@@ -1,3 +1,7 @@
+2013-07-12  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * emacs-lisp/map-ynp.el (map-y-or-n-p): Fix last change.
+
 2013-07-12  Eli Zaretskii  <eliz@gnu.org>
 
        * simple.el (next-line, previous-line): Document TRY-VSCROLL and ARG.
index 1919d47687bedf41880be7f648043b71abf54c91..56bfe04f9ce6c0f582b0d820337451ea55a10300 100644 (file)
@@ -131,8 +131,9 @@ Returns the number of actions taken."
     (unwind-protect
        (progn
          (if (stringp prompter)
-             (setq prompter (lambda (object)
-                              (format prompter object))))
+             (setq prompter (let ((prompter prompter))
+                              (lambda (object)
+                                (format prompter object)))))
          (while (funcall next)
            (setq prompt (funcall prompter elt))
            (cond ((stringp prompt)