mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(file-truename): Do the right thing when /home/gp2/eric = "".
This commit is contained in:
parent
ee6b9d1928
commit
8a5066940a
@ -314,7 +314,10 @@ The truename of a file name is found by chasing symbolic links
|
||||
both at the level of the file and at the level of the directories
|
||||
containing it, until no links are left at any level."
|
||||
(if (string= filename "~")
|
||||
(setq filename (expand-file-name filename)))
|
||||
(progn
|
||||
(setq filename (expand-file-name filename))
|
||||
(if (string= filename "")
|
||||
(setq filename "/"))))
|
||||
(let ((handler (find-file-name-handler filename)))
|
||||
;; For file name that has a special handler, call handler.
|
||||
;; This is so that ange-ftp can save time by doing a no-op.
|
||||
|
Loading…
Reference in New Issue
Block a user