Commit be417b22 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(dired-get-filename): Don't call encode-coding-string if FILE is nil.

parent ab685b6b
......@@ -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)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment