aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2008-05-02 17:22:04 +0000
committerStefan Monnier2008-05-02 17:22:04 +0000
commit2bd49e46f4568851ecf267bb79f240c778933c38 (patch)
tree560e0c8ae907589d6880d425b494a5e2def2ac12 /lisp
parent330b50982d0eadf27f08a857ae98022c0606b42e (diff)
downloademacs-2bd49e46f4568851ecf267bb79f240c778933c38.tar.gz
emacs-2bd49e46f4568851ecf267bb79f240c778933c38.zip
(minibuffer-with-setup-hook): Allow `fun' expressions rather than only value.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/files.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f79c5fc850b..bf1265a835d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12008-05-02 Stefan Monnier <monnier@iro.umontreal.ca> 12008-05-02 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * files.el (minibuffer-with-setup-hook): Allow `fun' expressions rather
4 than only value.
5
3 * dired.el (dired-read-dir-and-switches): 6 * dired.el (dired-read-dir-and-switches):
4 Set minibuffer-completing-file-name and call substitute-in-file-name. 7 Set minibuffer-completing-file-name and call substitute-in-file-name.
5 8
diff --git a/lisp/files.el b/lisp/files.el
index 38eb95fe9bd..221074ae329 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1124,7 +1124,7 @@ Recursive uses of the minibuffer will not be affected."
1124 ;; Clear out this hook so it does not interfere 1124 ;; Clear out this hook so it does not interfere
1125 ;; with any recursive minibuffer usage. 1125 ;; with any recursive minibuffer usage.
1126 (remove-hook 'minibuffer-setup-hook ,hook) 1126 (remove-hook 'minibuffer-setup-hook ,hook)
1127 (,fun))) 1127 (funcall ,fun)))
1128 (unwind-protect 1128 (unwind-protect
1129 (progn 1129 (progn
1130 (add-hook 'minibuffer-setup-hook ,hook) 1130 (add-hook 'minibuffer-setup-hook ,hook)