From 55fbbe8e3445d875d5617ae9b988f1d1cefe0dba Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sat, 30 Apr 1994 02:41:03 +0000 Subject: [PATCH] (revert-buffer): widen before replacing text. --- lisp/files.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/files.el b/lisp/files.el index b3654ec3656..4a7e3ed7833 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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))) -- 2.39.5