(dired-get-filename): Don't call encode-coding-string if FILE is nil.
This commit is contained in:
parent
ab685b6b9f
commit
be417b22ba
1 changed files with 2 additions and 2 deletions
|
@ -1299,8 +1299,8 @@ Optional arg NO-ERROR-IF-NOT-FILEP means return nil if no filename on
|
|||
"\\([^\\]\\|\\`\\)\"" file "\\1\\\\\"" nil t)
|
||||
file)
|
||||
"\"")))))
|
||||
(if buffer-file-coding-system
|
||||
(setq file (encode-coding-string file buffer-file-coding-system)))
|
||||
(and file buffer-file-coding-system
|
||||
(setq file (encode-coding-string file buffer-file-coding-system)))
|
||||
(if (eq localp 'no-dir)
|
||||
file
|
||||
(and file (concat (dired-current-directory localp) file)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue