Mercurial > emacs
changeset 19736:ca5e30c4e578
(dired-get-filename): Don't call encode-coding-string if FILE is nil.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 03 Sep 1997 22:31:25 +0000 |
parents | 73c2effb07a4 |
children | cad2a27d4451 |
files | lisp/dired.el |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/dired.el Wed Sep 03 22:30:48 1997 +0000 +++ b/lisp/dired.el Wed Sep 03 22:31:25 1997 +0000 @@ -1299,8 +1299,8 @@ "\\([^\\]\\|\\`\\)\"" 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)))))