mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-27 19:31:38 +00:00
(revert-buffer): widen before replacing text.
This commit is contained in:
parent
ae4a385754
commit
55fbbe8e34
@ -1828,6 +1828,7 @@ beginning and `after-revert-hook' at the end."
|
||||
(let ((buffer-file-name nil))
|
||||
(or auto-save-p
|
||||
(unlock-buffer)))
|
||||
(widen)
|
||||
(insert-file-contents file-name (not auto-save-p)
|
||||
nil nil t)))
|
||||
(goto-char (min opoint (point-max)))
|
||||
|
Loading…
Reference in New Issue
Block a user