]> git.eshelyaron.com Git - emacs.git/commitdiff
(revert-buffer): widen before replacing text.
authorKarl Heuer <kwzh@gnu.org>
Sat, 30 Apr 1994 02:41:03 +0000 (02:41 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sat, 30 Apr 1994 02:41:03 +0000 (02:41 +0000)
lisp/files.el

index b3654ec3656ba6a524983461f38325177e7f06e0..4a7e3ed78339563bc0ec3816aeb9121a89260978 100644 (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)))