HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b113cb
)
Comment change.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 19 Oct 2004 16:49:51 +0000
(16:49 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 19 Oct 2004 16:49:51 +0000
(16:49 +0000)
lisp/autorevert.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/autorevert.el
b/lisp/autorevert.el
index
ecf768c
..
5f6d26b
100644
(file)
--- 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