diff options
author | Kenichi Handa <handa@m17n.org> | 2003-05-31 02:00:26 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2003-05-31 02:00:26 +0000 |
commit | 5c31cdd7021da4ce423c4b584be9ebe1d56fd8cf (patch) | |
tree | df5456a8cfbcbe968042d57a8ead797beb7f146b | |
parent | ac8b207daf5c08dcfa6f11ea2caee887571dbde4 (diff) | |
download | emacs-5c31cdd7021da4ce423c4b584be9ebe1d56fd8cf.tar.gz |
(recover-file): Bind coding-system-for-read to
auto-save-coding.
-rw-r--r-- | lisp/files.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index 26235275261..42a29f0b2b7 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3617,8 +3617,8 @@ non-nil, it is called instead of rereading visited file contents." (let ((buffer-read-only nil) ;; Keep the current buffer-file-coding-system. (coding-system buffer-file-coding-system) - ;; Auto-saved file shoule be read without any code conversion. - (coding-system-for-read 'emacs-mule-unix)) + ;; Auto-saved file shoule be read with special coding. + (coding-system-for-read 'auto-save-coding)) (erase-buffer) (insert-file-contents file-name nil) (set-buffer-file-coding-system coding-system)) |