Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b77d8211
Commit
b77d8211
authored
Aug 26, 1997
by
Kenichi Handa
Browse files
(revert-buffer): Read a file without any code
conversion if we are reverting from an auto-saved file.
parent
fce31d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lisp/files.el
lisp/files.el
+7
-2
No files found.
lisp/files.el
View file @
b77d8211
...
...
@@ -2524,8 +2524,13 @@ non-nil, it is called instead of rereading visited file contents."
(or auto-save-p
(unlock-buffer)))
(widen)
(
insert-file-contents
file-name
(
not
auto-save-p
)
nil
nil
t
)))
(let ((coding-system-for-read
;; Auto-saved file shoule be read without
;; any code conversion.
(if auto-save-p 'no-conversion
coding-system-for-read)))
(insert-file-contents file-name (not auto-save-p)
nil nil t))))
(goto-char (min opoint (point-max)))
;; Recompute the truename in case changes in symlinks
;; have changed the truename.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment