diff options
| author | Stefan Monnier | 2014-06-27 21:10:27 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-06-27 21:10:27 -0400 |
| commit | 8076b124381292d7686ee9e4b2d86e683ed93bd2 (patch) | |
| tree | 7eaa5fb8cc7c4e013a4ed1900af7a900b6dc1a17 | |
| parent | 96ef7eb9eb59257e5033507ccc336a64c6743e9f (diff) | |
| download | emacs-8076b124381292d7686ee9e4b2d86e683ed93bd2.tar.gz emacs-8076b124381292d7686ee9e4b2d86e683ed93bd2.zip | |
* lisp/files.el (minibuffer-with-setup-hook): Evaluate the first arg eagerly.
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/files.el | 8 |
2 files changed, 15 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dce015d064b..aab65df93b8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * files.el (minibuffer-with-setup-hook): Evaluate the first arg eagerly. | ||
| 4 | |||
| 1 | 2014-06-26 Glenn Morris <rgm@gnu.org> | 5 | 2014-06-26 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * Makefile.in (update-authors): Update for moved authors.el. | 7 | * Makefile.in (update-authors): Update for moved authors.el. |
| @@ -15,8 +19,8 @@ | |||
| 15 | 19 | ||
| 16 | 2014-06-26 Daiki Ueno <ueno@gnu.org> | 20 | 2014-06-26 Daiki Ueno <ueno@gnu.org> |
| 17 | 21 | ||
| 18 | * emacs-lisp/package.el (package--check-signature): If | 22 | * emacs-lisp/package.el (package--check-signature): |
| 19 | package-check-signature is allow-unsigned, don't signal error when | 23 | If package-check-signature is allow-unsigned, don't signal error when |
| 20 | we can't verify signature because of missing public key | 24 | we can't verify signature because of missing public key |
| 21 | (bug#17625). | 25 | (bug#17625). |
| 22 | 26 | ||
| @@ -34,8 +38,8 @@ | |||
| 34 | * ruler-mode.el (ruler-mode-mouse-add-tab-stop) | 38 | * ruler-mode.el (ruler-mode-mouse-add-tab-stop) |
| 35 | (ruler-mode-ruler): Fix to work with nil tab-stop-list. | 39 | (ruler-mode-ruler): Fix to work with nil tab-stop-list. |
| 36 | 40 | ||
| 37 | * progmodes/asm-mode.el (asm-calculate-indentation): Use | 41 | * progmodes/asm-mode.el (asm-calculate-indentation): |
| 38 | indent-next-tab-stop. | 42 | Use indent-next-tab-stop. |
| 39 | 43 | ||
| 40 | * indent.el (indent-accumulate-tab-stops): New function. | 44 | * indent.el (indent-accumulate-tab-stops): New function. |
| 41 | 45 | ||
| @@ -114,8 +118,8 @@ | |||
| 114 | (hif-parse-macro-arglist): Mostly new functions for supporting | 118 | (hif-parse-macro-arglist): Mostly new functions for supporting |
| 115 | argumented macro expansion. | 119 | argumented macro expansion. |
| 116 | (hif-string-concatenation, hif-stringify, hif-token-concat) | 120 | (hif-string-concatenation, hif-stringify, hif-token-concat) |
| 117 | (hif-token-stringification, hif-token-concatenation): Stringification | 121 | (hif-token-stringification, hif-token-concatenation): |
| 118 | and concatenation. | 122 | Stringification and concatenation. |
| 119 | (hif-find-next-relevant): Fix comments. | 123 | (hif-find-next-relevant): Fix comments. |
| 120 | (hif-ifdef-to-endif, hif-looking-at-elif, hif-hide-line): Bug fix for | 124 | (hif-ifdef-to-endif, hif-looking-at-elif, hif-hide-line): Bug fix for |
| 121 | some cases involving #elif. | 125 | some cases involving #elif. |
diff --git a/lisp/files.el b/lisp/files.el index 65f2009c7ce..27d3ec7464e 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1382,14 +1382,16 @@ called additional times). | |||
| 1382 | This macro actually adds an auxiliary function that calls FUN, | 1382 | This macro actually adds an auxiliary function that calls FUN, |
| 1383 | rather than FUN itself, to `minibuffer-setup-hook'." | 1383 | rather than FUN itself, to `minibuffer-setup-hook'." |
| 1384 | (declare (indent 1) (debug t)) | 1384 | (declare (indent 1) (debug t)) |
| 1385 | (let ((hook (make-symbol "setup-hook"))) | 1385 | (let ((hook (make-symbol "setup-hook")) |
| 1386 | `(let (,hook) | 1386 | (funsym (make-symbol "fun"))) |
| 1387 | `(let ((,funsym ,fun) | ||
| 1388 | ,hook) | ||
| 1387 | (setq ,hook | 1389 | (setq ,hook |
| 1388 | (lambda () | 1390 | (lambda () |
| 1389 | ;; Clear out this hook so it does not interfere | 1391 | ;; Clear out this hook so it does not interfere |
| 1390 | ;; with any recursive minibuffer usage. | 1392 | ;; with any recursive minibuffer usage. |
| 1391 | (remove-hook 'minibuffer-setup-hook ,hook) | 1393 | (remove-hook 'minibuffer-setup-hook ,hook) |
| 1392 | (funcall ,fun))) | 1394 | (funcall ,funsym))) |
| 1393 | (unwind-protect | 1395 | (unwind-protect |
| 1394 | (progn | 1396 | (progn |
| 1395 | (add-hook 'minibuffer-setup-hook ,hook) | 1397 | (add-hook 'minibuffer-setup-hook ,hook) |