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

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

bug#35418: [PATCH] Don't poll auto-revert files that use notification


From: Mattias Engdegård
Subject: bug#35418: [PATCH] Don't poll auto-revert files that use notification
Date: Fri, 10 May 2019 17:22:20 +0200

9 maj 2019 kl. 13.50 skrev Michael Albinus <address@hidden>:

> Thinking about, I'm even not confident that a static value of this
> indication is sufficient. In dired, it might be set to t when the dired
> buffer is setup. But what if the dired buffer contains subdirectories?
> Is it still possible to indicate this by file notifications over
> default-directory? Don't know, maybe not, and the variable has to be set
> to nil ...

There is a third possibility: a buffer requires polling, but could make use of 
notification. The distinction is only important when 
`auto-revert-avoid-polling' is set. For example, we could have, say, 
`buffer-auto-revert-by-notification' take the values nil, notify-only and 
notify-and-poll. This permits immediate updates for some changes while still 
not keeping stale information indefinitely.

On the other hand, maybe that sort of mode-specific complexity is better left 
to the modes themselves?






reply via email to

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