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 15:25:40 +0300 Message-ID: <83fv1isyez.fsf@gnu.org> References: <87y4fsqlek.fsf@gmx.de> <87bnc7gheq.fsf@gmx.de> <83vbafrpag.fsf@gnu.org> <877fmvgcn8.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444479953 11137 80.91.229.3 (10 Oct 2015 12:25:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2015 12:25:53 +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 14:25:45 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 1ZktDc-0004VA-Uw for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 14:25:45 +0200 Original-Received: from localhost ([::1]:44750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZktDc-0001ov-3d for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 08:25:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZktDX-0001oq-Ks for emacs-devel@gnu.org; Sat, 10 Oct 2015 08:25:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZktDU-0004My-Cl for emacs-devel@gnu.org; Sat, 10 Oct 2015 08:25:39 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:55502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZktDU-0004Mq-44 for emacs-devel@gnu.org; Sat, 10 Oct 2015 08:25:36 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NW000E007TBQP00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 10 Oct 2015 15:25:34 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW000EL67UMNT20@a-mtaout20.012.net.il>; Sat, 10 Oct 2015 15:25:34 +0300 (IDT) In-reply-to: <877fmvgcn8.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.166 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:191134 Archived-At: > From: Michael Albinus > Cc: emacs-devel@gnu.org > Date: Sat, 10 Oct 2015 13:56:43 +0200 > > Eli Zaretskii writes: > > >> Nobody did reply. > > > > I did. Or I thought I did, but now I cannot find my response in the > > archives. Maybe it's my imagination, or maybe it has something to do > > with the recent snafu in GNU mailman archives. > > At least I haven't received an email from you on this topic. Usually, > you Cc the sender of a message. Yes. I guess I was dreaming. It happens. > > In addition, I don't know how to implement this in w32notify.c, at > > least not easily. As I said, when the watched directory is deleted, > > the thread that watches exits with an error status, that's all. > > But isn't there at least the `removed' event? Or is it just for files of > the watched directory, and not the directory itself? The latter, AFAIR. > > What problem should this 'stopped' event solve? Do we really have a > > real-life problem here, and if so, couldn't we solve it in some other > > manner? > > 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?