(minibuffer-with-setup-hook): Allow `fun' expressions rather than only value.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 2 May 2008 17:22:04 +0000 (17:22 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 2 May 2008 17:22:04 +0000 (17:22 +0000)
lisp/ChangeLog
lisp/files.el

index f79c5fc..bf1265a 100644 (file)
@@ -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.
 
index 38eb95f..221074a 100644 (file)
@@ -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)