From: Richard M. Stallman Date: Tue, 19 Oct 2004 16:49:51 +0000 (+0000) Subject: Comment change. X-Git-Tag: ttn-vms-21-2-B4~4476 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7ebc19f9798c44dc0441c9d70fe4ab26c6f78f66;p=emacs.git Comment change. --- 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