mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 20:32:00 -08:00
(revert-buffer, recover-file): Bind
coding-system-for-read to emacs-mule-unix, not to no-conversion.
This commit is contained in:
parent
2b69bc119b
commit
68875f0e7b
2 changed files with 7 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue