emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autorevert doesn't change mode-line-modified anymore


From: Klaus Zeitler
Subject: autorevert doesn't change mode-line-modified anymore
Date: Mon, 18 Oct 2004 14:01:05 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (usg-unix-v)

autorevert behavior has changed recently. When I move (outside the emacs
session) a write-protected file to a readable file, that I have in an emacs
buffer, (and vice versa) emacs autoreverts the file contents, but doesn't
update the variable  buffer-read-only anymore, i.e. the read-only status
remains the same. In emacs 21.2 the read-only status was updated correctly.

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?

Klaus

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             address@hidden  |
 ------------------------------------------
---
There are three kinds of lies: Lies, Damn Lies, and Statistics. -- Disraeli




reply via email to

[Prev in Thread] Current Thread [Next in Thread]