From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: New file notification event `stopped' Date: Sat, 10 Oct 2015 16:41:28 +0300 Message-ID: <83d1wmsuwn.fsf@gnu.org> References: <87y4fsqlek.fsf@gmx.de> <87bnc7gheq.fsf@gmx.de> <83vbafrpag.fsf@gnu.org> <877fmvgcn8.fsf@gmx.de> <83fv1isyez.fsf@gnu.org> <8737xihmni.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444484539 14454 80.91.229.3 (10 Oct 2015 13:42:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2015 13:42:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 10 15:42:10 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZkuPZ-0007IZ-QG for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 15:42:09 +0200 Original-Received: from localhost ([::1]:44976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuPY-0005zf-U0 for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 09:42:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuPM-0005zW-HL for emacs-devel@gnu.org; Sat, 10 Oct 2015 09:41:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkuPJ-0004C0-CM for emacs-devel@gnu.org; Sat, 10 Oct 2015 09:41:56 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkuPJ-0004Bv-4r for emacs-devel@gnu.org; Sat, 10 Oct 2015 09:41:53 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NW000800BBNST00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 10 Oct 2015 16:41:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW000891BCY5LB0@a-mtaout22.012.net.il>; Sat, 10 Oct 2015 16:41:26 +0300 (IDT) In-reply-to: <8737xihmni.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191138 Archived-At: > From: Michael Albinus > Cc: emacs-devel@gnu.org > Date: Sat, 10 Oct 2015 15:35:13 +0200 > > Eli Zaretskii 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. No, I meant the single timer we already have there. > 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. autorevert.el doesn't scale well anyway. E.g., global-autorevert-mode can potentially consume a lot of system resources (handles etc.) that are at premium, and we already had a few bug reports for that. But that's another issue.