summaryrefslogtreecommitdiff
path: root/lisp/autorevert.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-10-19 16:49:51 +0000
committerRichard M. Stallman <rms@gnu.org>2004-10-19 16:49:51 +0000
commit7ebc19f9798c44dc0441c9d70fe4ab26c6f78f66 (patch)
tree9cf98d98014e9cfae777e6c09519cc53d845a607 /lisp/autorevert.el
parent3b113cb99fdadccd6e5891e4acdb1fc97be1708d (diff)
downloademacs-7ebc19f9798c44dc0441c9d70fe4ab26c6f78f66.tar.gz
Comment change.
Diffstat (limited to 'lisp/autorevert.el')
-rw-r--r--lisp/autorevert.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index ecf768c5732..5f6d26bfabb 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -421,6 +421,9 @@ This is an internal function used by Auto-Revert Mode."
'no-mini t))
(if auto-revert-tail-mode
(auto-revert-tail-handler)
+ ;; Bind buffer-read-only in case user has done C-x C-q,
+ ;; so as not to forget that. This gives undesirable results
+ ;; when the file's mode changes, but that is less common.
(let ((buffer-read-only buffer-read-only))
(revert-buffer 'ignore-auto 'dont-ask 'preserve-modes)))
(when buffer-file-name