changeset 5113:193cd8b36b41

(dired-readin-insert): Expand default-directory and dirname before comparing them. (dired-internal-noselect): Set default-directory to abbreviated name.
author Richard M. Stallman <rms@gnu.org>
date Mon, 22 Nov 1993 09:29:51 +0000
parents 4bb3a179a87f
children b37f62d72049
files lisp/dired.el
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Mon Nov 22 09:25:23 1993 +0000
+++ b/lisp/dired.el	Mon Nov 22 09:29:51 1993 +0000
@@ -398,9 +398,11 @@
 	(if switches			; ... but new switches
 	    (dired-sort-other switches))	; this calls dired-revert
       ;; Else a new buffer
-      (setq default-directory (if (file-directory-p dirname)
-				  dirname
-				(file-name-directory dirname)))
+      (setq default-directory
+	    (abbreviate-file-name
+	     (if (file-directory-p dirname)
+		 dirname
+	       (file-name-directory dirname))))
       (or switches (setq switches dired-listing-switches))
       (dired-mode dirname switches)
       ;; default-directory and dired-actual-switches are set now