(revert-buffer, recover-file): Use utf-8-emacs coding

system, not emacs-mule.
This commit is contained in:
Dave Love 2002-05-27 14:52:32 +00:00
parent 7f04a67e3b
commit 41db09b7a3

View file

@ -3071,7 +3071,7 @@ non-nil, it is called instead of rereading visited file contents."
(let ((coding-system-for-read
;; Auto-saved file shoule be read without
;; any code conversion.
(if auto-save-p 'emacs-mule-unix
(if auto-save-p 'utf-8-emacs-unix
coding-system-for-read)))
;; Note that this preserves point in an intelligent way.
(insert-file-contents file-name (not auto-save-p)
@ -3128,7 +3128,7 @@ non-nil, it is called instead of rereading visited file contents."
;; Keep the current buffer-file-coding-system.
(coding-system buffer-file-coding-system)
;; Auto-saved file shoule be read without any code conversion.
(coding-system-for-read 'emacs-mule-unix))
(coding-system-for-read 'utf-8-emacs-unix))
(erase-buffer)
(insert-file-contents file-name nil)
(set-buffer-file-coding-system coding-system))