Commit 847aabce authored by Richard M. Stallman's avatar Richard M. Stallman

(dired-readin-insert): Expand default-directory and dirname

before comparing them.
(dired-internal-noselect): Set default-directory to abbreviated name.
parent f45da5d1
......@@ -398,9 +398,11 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
(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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment