aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2002-07-26 12:07:26 +0000
committerKenichi Handa <[email protected]>2002-07-26 12:07:26 +0000
commit1eb0bebc79c40096d0cf42bf5c0b75f2e978aeca (patch)
treee77beae89632b81e77db6e24c510ae5c364b033e /lisp
parent8d239c89c6580517905dfcddc02e176518a475b0 (diff)
(revert-buffer): Before calling insert-file-contents,
kill the local variable buffer-file-coding-system.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/files.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 549bd1de8a..ac1712229f 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))