mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
(minibuffer-with-setup-hook): Allow `fun' expressions rather than only value.
This commit is contained in:
parent
330b50982d
commit
2bd49e46f4
@ -1,5 +1,8 @@
|
||||
2008-05-02 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* files.el (minibuffer-with-setup-hook): Allow `fun' expressions rather
|
||||
than only value.
|
||||
|
||||
* dired.el (dired-read-dir-and-switches):
|
||||
Set minibuffer-completing-file-name and call substitute-in-file-name.
|
||||
|
||||
|
@ -1124,7 +1124,7 @@ Recursive uses of the minibuffer will not be affected."
|
||||
;; Clear out this hook so it does not interfere
|
||||
;; with any recursive minibuffer usage.
|
||||
(remove-hook 'minibuffer-setup-hook ,hook)
|
||||
(,fun)))
|
||||
(funcall ,fun)))
|
||||
(unwind-protect
|
||||
(progn
|
||||
(add-hook 'minibuffer-setup-hook ,hook)
|
||||
|
Loading…
Reference in New Issue
Block a user