Commit 55fbbe8e authored by Karl Heuer's avatar Karl Heuer
Browse files

(revert-buffer): widen before replacing text.

parent ae4a3857
...@@ -1828,6 +1828,7 @@ beginning and `after-revert-hook' at the end." ...@@ -1828,6 +1828,7 @@ beginning and `after-revert-hook' at the end."
(let ((buffer-file-name nil)) (let ((buffer-file-name nil))
(or auto-save-p (or auto-save-p
(unlock-buffer))) (unlock-buffer)))
(widen)
(insert-file-contents file-name (not auto-save-p) (insert-file-contents file-name (not auto-save-p)
nil nil t))) nil nil t)))
(goto-char (min opoint (point-max))) (goto-char (min opoint (point-max)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment