diff options
| author | Richard M. Stallman | 2006-11-06 15:50:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-11-06 15:50:06 +0000 |
| commit | 1419c7fc46ddc5d6a32a9ebe6e255f19e56a2c65 (patch) | |
| tree | 6cad4c92685bdd3af85bc3780b7efcee75e9349f | |
| parent | 41929f329cb670d7806510784bbda0c1b4d852e7 (diff) | |
| download | emacs-1419c7fc46ddc5d6a32a9ebe6e255f19e56a2c65.tar.gz emacs-1419c7fc46ddc5d6a32a9ebe6e255f19e56a2c65.zip | |
(dired-readin): Locally bind file-name-coding-system.
| -rw-r--r-- | lisp/dired.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 491ef261c11..5359b464579 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -791,6 +791,9 @@ wildcards, erases the buffer, and builds the subdir-alist anew | |||
| 791 | (run-hooks 'dired-before-readin-hook) | 791 | (run-hooks 'dired-before-readin-hook) |
| 792 | (if (consp buffer-undo-list) | 792 | (if (consp buffer-undo-list) |
| 793 | (setq buffer-undo-list nil)) | 793 | (setq buffer-undo-list nil)) |
| 794 | (make-local-variable 'file-name-coding-system) | ||
| 795 | (setq file-name-coding-system | ||
| 796 | (or coding-system-for-read file-name-coding-system)) | ||
| 794 | (let (buffer-read-only | 797 | (let (buffer-read-only |
| 795 | ;; Don't make undo entries for readin. | 798 | ;; Don't make undo entries for readin. |
| 796 | (buffer-undo-list t)) | 799 | (buffer-undo-list t)) |