Mercurial > emacs
changeset 46703:9bb3ef1e53cd
(revert-buffer): Before calling insert-file-contents,
kill the local variable buffer-file-coding-system.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 26 Jul 2002 12:07:26 +0000 |
parents | 2673ae55a6f9 |
children | 1e725474da67 |
files | lisp/files.el |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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))