(dired-readin): Locally bind file-name-coding-system.
This commit is contained in:
parent
41929f329c
commit
1419c7fc46
1 changed files with 3 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue