changeset 57602:acc1f9ccb10c

Comment change.
author Richard M. Stallman <rms@gnu.org>
date Tue, 19 Oct 2004 16:49:51 +0000
parents 83910fd04569
children bdfa227d18a8
files lisp/autorevert.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/autorevert.el	Tue Oct 19 16:49:15 2004 +0000
+++ b/lisp/autorevert.el	Tue Oct 19 16:49:51 2004 +0000
@@ -421,6 +421,9 @@
 	   '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