(dired-readin): Locally bind file-name-coding-system.

This commit is contained in:
Richard M. Stallman 2006-11-06 15:50:06 +00:00
parent 41929f329c
commit 1419c7fc46

View file

@ -791,6 +791,9 @@ wildcards, erases the buffer, and builds the subdir-alist anew
(run-hooks 'dired-before-readin-hook)
(if (consp buffer-undo-list)
(setq buffer-undo-list nil))
(make-local-variable 'file-name-coding-system)
(setq file-name-coding-system
(or coding-system-for-read file-name-coding-system))
(let (buffer-read-only
;; Don't make undo entries for readin.
(buffer-undo-list t))