diff options
-rw-r--r-- | lisp/files.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 3fe0fa479ee..98cf8bfae56 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3305,7 +3305,8 @@ non-nil, it is called instead of rereading visited file contents." ;; Auto-saved file shoule be read without ;; any code conversion. (if auto-save-p 'emacs-mule-unix - coding-system-for-read))) + (or coding-system-for-read + buffer-file-coding-system)))) ;; This force ;; after-insert-file-set-buffer-file-coding-system ;; (called from insert-file-contents) to set |