]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-insert-directory): Call expand-file-name here
authorRichard M. Stallman <rms@gnu.org>
Mon, 1 Aug 1994 04:43:38 +0000 (04:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 1 Aug 1994 04:43:38 +0000 (04:43 +0000)
because the dir name may have been abbreviated before.

lisp/dired.el

index 705c1b8abb7a671425af27ffd73a1851abdae2fb..12925074258efb7e05faf89ffe8534035e68c837 100644 (file)
@@ -526,13 +526,16 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
   ;; Do the right thing whether dir-or-list is atomic or not.  If it is,
   ;; inset all files listed in the cdr (the car is the passed-in directory
   ;; list).
+  ;; We expand the file names here because the may have been abbreviated
+  ;; in dired-noselect.
   (let ((opoint (point)))
     (if (consp dir-or-list)
        (progn
          (mapcar
-          (function (lambda (x) (insert-directory x switches wildcard full-p)))
+          (function (lambda (x) (insert-directory (expand-file-name x)
+                                                  switches wildcard full-p)))
           (cdr dir-or-list)))
-      (insert-directory dir-or-list switches wildcard full-p))
+      (insert-directory (expand-file-name dir-or-list) switches wildcard full-p))
     (dired-insert-set-properties opoint (point)))
   (setq dired-directory dir-or-list))