From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#26126: 26.0.50; file-notify-rm-watch removes arbitrary watches Date: Tue, 21 Mar 2017 16:56:42 +0100 Message-ID: <8760j2mxmt.fsf@luca> References: <87r31x9ulw.fsf@luca> <87shmcney8.fsf@detlef> <87efxw7xvc.fsf@luca> <87mvcjophx.fsf@detlef> <87tw6rssoi.fsf@luca> <87pohfkmvh.fsf@detlef> <87lgs2sobr.fsf@luca> <87y3w2gywc.fsf@detlef> <878to21fty.fsf@luca> <87wpbl1u80.fsf@detlef> <87d1ddecx2.fsf@luca> <87efxtnk8m.fsf@detlef> <87tw6nd6nf.fsf@luca> <871strm323.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490111893 20022 195.159.176.226 (21 Mar 2017 15:58:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Mar 2017 15:58:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26126@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 21 16:58:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqMAg-0004WE-Ns for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Mar 2017 16:58:06 +0100 Original-Received: from localhost ([::1]:41053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqMAm-0002fn-Rn for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Mar 2017 11:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqMAf-0002fX-UQ for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqMAc-0004xV-Se for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:58:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqMAc-0004xQ-Ko for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cqMAc-0007hx-CU for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2017 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Mar 2017 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26126-submit@debbugs.gnu.org id=B26126.149011182429550 (code B ref 26126); Tue, 21 Mar 2017 15:58:02 +0000 Original-Received: (at 26126) by debbugs.gnu.org; 21 Mar 2017 15:57:04 +0000 Original-Received: from localhost ([127.0.0.1]:38159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqM9g-0007gY-2b for submit@debbugs.gnu.org; Tue, 21 Mar 2017 11:57:04 -0400 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:49420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqM9d-0007g4-Vb for 26126@debbugs.gnu.org; Tue, 21 Mar 2017 11:57:02 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Original-Received: from localhost (unknown [95.91.222.207]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id DDA5B17999DA; Tue, 21 Mar 2017 16:56:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1490111803; bh=JtI5ZuobutaaKOf1IXRQgPa3WZU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=BpLdKeI+JktQ/fvtOWFbzULe/NPTDbYM4gFOSSVHHyzMqM8K+QSisTdN7DHXFyom/ TaiM5AKtdz+xsSypR3DO6HuhWgeB+fDdZ+97wwdmTSP1NFAd6Z2UwKBXSl7EDV+4th Cnv6yyT5hphXmgEAGWpL9VMSeuOLptQNCoa4R2HM= In-Reply-To: <871strm323.fsf@detlef> (Michael Albinus's message of "Tue, 21 Mar 2017 09:44:52 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130786 Archived-At: Michael Albinus writes: > Andreas Politz writes: > >>>> Sure, the back-ends mostly watch directories, except for kqueue. But is >>>> this behavior also intended to be propagated to the clients of >>>> filenotify.el ? > We've discussed this a while ago, main reason (IIRC) was to achieve > same behaviour for the different libraries. > > I cannot find the discussion just now, likely it was in one of the > bugs. The main reason was the w32notify library, which works only > watching directories. > > Later on we've added the kqueue library, which works reliably only > watching files. This breaks the unification attempt, but I don't believe > we shall change the behaviour again. Ok, I try to find it, but note that this behavior was introduced with the following (kqueue-only) commit commit 7bf54d01159eb09bae3c9cd86f2af0812d9afdf6 Author: Michael Albinus Date: Fri Jan 22 19:56:09 2016 +0100 Backport kqueue integration from master Maybe we can work on unifying the behavior across back-ends at a later time, while taking some pointers from other projects, e.g. https://github.com/emcrisostomo/fswatch . If it stays this way, it should probably be documented. -ap