summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-12-01 15:30:43 +0000
committerEli Zaretskii <eliz@gnu.org>2000-12-01 15:30:43 +0000
commit68875f0e7b0b8a883dcbcbc9ce18e9bb3dc63cee (patch)
tree03bbb179b83150e5b441fd248628340c87ff8c3d /lisp
parent2b69bc119b4623aa4e34371d44e226026a6f004d (diff)
downloademacs-68875f0e7b0b8a883dcbcbc9ce18e9bb3dc63cee.tar.gz
emacs-68875f0e7b0b8a883dcbcbc9ce18e9bb3dc63cee.tar.bz2
emacs-68875f0e7b0b8a883dcbcbc9ce18e9bb3dc63cee.zip
(revert-buffer, recover-file): Bind
coding-system-for-read to emacs-mule-unix, not to no-conversion.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5060dabea57..d575cba5b9a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-01 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * files.el (revert-buffer, recover-file): Bind
+ coding-system-for-read to emacs-mule-unix, not to no-conversion.
+
2000-12-01 Gerd Moellmann <gerd@gnu.org>
* hi-lock.el (hi-lock-refontify): Call jit-lock-refontify.
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))