mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 05:30:43 -08:00
(file-truename): If name has no dir, use default-directory.
This commit is contained in:
parent
4dedbfe0bf
commit
fb145562db
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue