From 1eb0bebc79c40096d0cf42bf5c0b75f2e978aeca Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 26 Jul 2002 12:07:26 +0000 Subject: [PATCH] (revert-buffer): Before calling insert-file-contents, kill the local variable buffer-file-coding-system. --- lisp/files.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/files.el b/lisp/files.el index 549bd1de8a0..ac1712229fd 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3305,6 +3305,12 @@ non-nil, it is called instead of rereading visited file contents." ;; any code conversion. (if auto-save-p 'emacs-mule-unix coding-system-for-read))) + ;; This force + ;; after-insert-file-set-buffer-file-coding-system + ;; (called from insert-file-contents) to set + ;; buffer-file-coding-system to a proper value. + (kill-local-variable 'buffer-file-coding-system) + ;; Note that this preserves point in an intelligent way. (if preserve-modes (let ((buffer-file-format buffer-file-format))