summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-12-01 15:27:59 +0000
committerEli Zaretskii <eliz@gnu.org>2000-12-01 15:27:59 +0000
commitedfee446e5980ccacf02a453d82157129a550b34 (patch)
tree31a92f85664dfce6b3c98b124143b207d3333930 /lisp/files.el
parent47b510a15c87075a3158eb630e21ec49efabd3d1 (diff)
downloademacs-edfee446e5980ccacf02a453d82157129a550b34.tar.gz
(revert-buffer, recover-file): Bind
coding-system-for-read to emacs-mule-unix, not to no-conversion.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 973f7bc9de0..579ad907404 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3014,7 +3014,7 @@ non-nil, it is called instead of rereading visited file contents."
(let ((coding-system-for-read
;; Auto-saved file shoule be read without
;; any code conversion.
- (if auto-save-p 'no-conversion
+ (if auto-save-p 'emacs-mule-unix
coding-system-for-read)))
;; Note that this preserves point in an intelligent way.
(insert-file-contents file-name (not auto-save-p)
@@ -3065,7 +3065,7 @@ non-nil, it is called instead of rereading visited file contents."
;; 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 'no-conversion))
+ (coding-system-for-read 'emacs-mule-unix))
(erase-buffer)
(insert-file-contents file-name nil)
(set-buffer-file-coding-system coding-system))