]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-readin-insert): Expand default-directory and dirname
authorRichard M. Stallman <rms@gnu.org>
Mon, 22 Nov 1993 09:25:23 +0000 (09:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 22 Nov 1993 09:25:23 +0000 (09:25 +0000)
before comparing them.

lisp/dired.el

index 8c7c9baa998a8d36d9760d11c639bac2539156e2..2a197ca7a8eab42dbc108d4796bfd0910bb373d6 100644 (file)
@@ -489,7 +489,9 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
     (if (consp dir-or-list)
        (setq dirname (car dir-or-list))
       (setq dirname dir-or-list))
-    (if (and (equal default-directory dirname)
+    ;; Expand before comparing in case one or both have been abbreviated.
+    (if (and (equal (expand-file-name default-directory)
+                   (expand-file-name dirname))
             (not (consp dir-or-list)))
        ;; If we are reading a whole single directory...
        (dired-insert-directory dir-or-list dired-actual-switches nil t)