mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(revert-buffer): widen before replacing text.
This commit is contained in:
parent
ae4a385754
commit
55fbbe8e34
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue