mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-29 19:48:19 +00:00
(file-truename): If name has no dir, use default-directory.
This commit is contained in:
parent
4dedbfe0bf
commit
fb145562db
@ -372,7 +372,7 @@ Do not specify them in other calls."
|
||||
(if handler
|
||||
(setq filename (funcall handler 'file-truename filename)
|
||||
done t)
|
||||
(let ((dir (file-name-directory filename))
|
||||
(let ((dir (or (file-name-directory filename) default-directory))
|
||||
target dirfile)
|
||||
;; Get the truename of the directory.
|
||||
(setq dirfile (directory-file-name dir))
|
||||
|
Loading…
Reference in New Issue
Block a user