[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autorevert doesn't change mode-line-modified anymore
From: |
Richard Stallman |
Subject: |
Re: autorevert doesn't change mode-line-modified anymore |
Date: |
Tue, 19 Oct 2004 02:13:14 -0400 |
The call to revert-buffer in auto-revert-buffers moved recently to
auto-revert-handler and was encapsulated with a let statement:
(let ((buffer-read-only buffer-read-only))
(revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))
What was the reason for this change?
The reason was so that if the user had type C-x C-q to change
the value of buffer-read-only, that change should not be lost.
It looks like we can't completely win no matter what we do.
If we bind the variable, we get wrong results if the file's
mode changes. If we don't bind it, we get wrong results if
the user changes the mode.
I think changes by the user are more common. So the code
as it is now is better.
I will add a comment about this.
- autorevert doesn't change mode-line-modified anymore, Klaus Zeitler, 2004/10/18
- Re: autorevert doesn't change mode-line-modified anymore, Luc Teirlinck, 2004/10/18
- Re: autorevert doesn't change mode-line-modified anymore, Luc Teirlinck, 2004/10/18
- Re: autorevert doesn't change mode-line-modified anymore, Luc Teirlinck, 2004/10/18
- Re: autorevert doesn't change mode-line-modified anymore,
Richard Stallman <=
- Re: autorevert doesn't change mode-line-modified anymore, Luc Teirlinck, 2004/10/19
- Re: autorevert doesn't change mode-line-modified anymore, Richard Stallman, 2004/10/20
- Re: autorevert doesn't change mode-line-modified anymore, Klaus Zeitler, 2004/10/21
- Re: autorevert doesn't change mode-line-modified anymore, Kim F. Storm, 2004/10/21
- Re: autorevert doesn't change mode-line-modified anymore, Richard Stallman, 2004/10/22