changeset 94651:e8c7fc7ef92b

(dired-read-dir-and-switches): Fix up last change.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 06 May 2008 00:51:56 +0000
parents 276c5ce56449
children 3a091c58b092
files lisp/ChangeLog lisp/dired.el
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue May 06 00:37:31 2008 +0000
+++ b/lisp/ChangeLog	Tue May 06 00:51:56 2008 +0000
@@ -1,7 +1,11 @@
+2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* dired.el (dired-read-dir-and-switches): Fix up last change.
+
 2008-05-05  Eric S. Raymond  <esr@snark.thyrsus.com>
 
 	* vc.el (vc-deduce-fileset): Lift all the policy and UI
-	stuff out of this function, move it to vc-dispatcher-selection-set.k
+	stuff out of this function, move it to vc-dispatcher-selection-set.
 
 2008-05-05  Sam Steingold  <sds@gnu.org>
 
--- a/lisp/dired.el	Tue May 06 00:37:31 2008 +0000
+++ b/lisp/dired.el	Tue May 06 00:51:56 2008 +0000
@@ -606,9 +606,12 @@
         (minibuffer-with-setup-hook
             (lambda ()
               (setq minibuffer-default default)
-              (setq minibuffer-completing-file-name t)
-              (setq completion-ignore-case
-                    read-file-name-completion-ignore-case)
+              (set (make-local-variable 'minibuffer-completing-file-name)
+                   ;; t means "from now until the next minibuffer", whereas
+                   ;; `lambda' means "only here".
+                   'lambda)
+              (set (make-local-variable 'completion-ignore-case)
+                   read-file-name-completion-ignore-case)
               (setq default-directory defdir))
           (substitute-in-file-name
            (completing-read