(find-file-noselect): Respect the value of
find-file-visit-truename when FILENAME is a directory and find-file-run-dired is non-nil.
This commit is contained in:
parent
d0fc03efcf
commit
4147a3ccb5
1 changed files with 3 additions and 1 deletions
|
@ -712,7 +712,9 @@ The buffer is not selected, just returned to the caller."
|
|||
(expand-file-name filename)))
|
||||
(if (file-directory-p filename)
|
||||
(if find-file-run-dired
|
||||
(dired-noselect filename)
|
||||
(dired-noselect (if find-file-visit-truename
|
||||
(abbreviate-file-name (file-truename filename))
|
||||
filename))
|
||||
(error "%s is a directory." filename))
|
||||
(let* ((buf (get-file-buffer filename))
|
||||
(truename (abbreviate-file-name (file-truename filename)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue