emacs-devel
[Top][All Lists]
Advanced

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

Re: New file notification event `stopped'


From: Michael Albinus
Subject: Re: New file notification event `stopped'
Date: Sat, 10 Oct 2015 15:35:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Imagine you have a file under supervision in auto-revert-mode. If the
>> watch is broken or removed (by a *-rm-watch call), autorevert could
>> still work due to the polling mechanism in autorevert.el.
>
> Shouldn't it be possible to test the validity from time to time?

autorevert.el, like all other packages using file notifications, could
install timers for watched files or directories, checking whether there
are still valid watches. Many timers, and all users of file notification
need to do the same. It would be a polling behaviour.

The charm of the `stopped' event would be, that all of this is not
necessary. Just an event to be handled in the package's file
notification handler, that's it.

Best regards, Michael.



reply via email to

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