mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-03 06:00:50 -08:00
(dired-readin-insert): Expand default-directory and dirname
before comparing them.
This commit is contained in:
parent
b7d52f8ed4
commit
f45da5d14b
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue