1
0
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:
Karl Heuer 1994-04-30 02:41:03 +00:00
parent ae4a385754
commit 55fbbe8e34

View File

@ -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)))