]> git.eshelyaron.com Git - emacs.git/commitdiff
(revert-buffer): Before calling insert-file-contents,
authorKenichi Handa <handa@m17n.org>
Fri, 26 Jul 2002 12:07:26 +0000 (12:07 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 26 Jul 2002 12:07:26 +0000 (12:07 +0000)
kill the local variable buffer-file-coding-system.

lisp/files.el

index 549bd1de8a0b4485b58e0c9174fa41c5e24f074a..ac1712229fd41019054e6ba1391886d3f605e19b 100644 (file)
@@ -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))