# HG changeset patch # User Kenichi Handa # Date 1027685246 0 # Node ID 9bb3ef1e53cdbcb4668d3241dba68f37bf0aae15 # Parent 2673ae55a6f9a1f4bb4c6271611346e0d1f72396 (revert-buffer): Before calling insert-file-contents, kill the local variable buffer-file-coding-system. diff -r 2673ae55a6f9 -r 9bb3ef1e53cd lisp/files.el --- a/lisp/files.el Fri Jul 26 11:53:25 2002 +0000 +++ b/lisp/files.el Fri Jul 26 12:07:26 2002 +0000 @@ -3305,6 +3305,12 @@ ;; 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))