Mercurial > emacs
changeset 8403:941432da0ff3
(dired-noselect): Call abbreviate-file-name here.
(dired-internal-noselect): Not here.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 31 Jul 1994 21:42:11 +0000 |
parents | f1a7929cee65 |
children | 49ffb0b7fd22 |
files | lisp/dired.el |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/dired.el Sun Jul 31 20:59:32 1994 +0000 +++ b/lisp/dired.el Sun Jul 31 21:42:11 1994 +0000 @@ -365,7 +365,8 @@ (if (consp dir-or-list) (setq dirname (car dir-or-list)) (setq dirname dir-or-list)) - (setq dirname (expand-file-name (directory-file-name dirname))) + (setq dirname (abbreviate-file-name + (expand-file-name (directory-file-name dirname)))) (if (file-directory-p dirname) (setq dirname (file-name-as-directory dirname))) (if (consp dir-or-list) @@ -410,10 +411,9 @@ (message "Directory has changed on disk; type `g' to update Dired"))) ;; Else a new buffer (setq default-directory - (abbreviate-file-name - (if (file-directory-p dirname) - dirname - (file-name-directory dirname)))) + (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