From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#26126: 26.0.50; file-notify-rm-watch removes arbitrary watches Date: Thu, 23 Mar 2017 08:36:39 +0100 Message-ID: <87lgrwsauw.fsf@detlef> 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> <8737e8excq.fsf@luca> <87bmsuixuj.fsf@detlef> <87efxqmzyp.fsf@luca> <877f3h4fjd.fsf@detlef> <87shm5ky0q.fsf@luca> <87lgrx2l89.fsf@detlef> <83shm55bbj.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490254635 16950 195.159.176.226 (23 Mar 2017 07:37:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2017 07:37:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26126@debbugs.gnu.org, politza@hochschule-trier.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 23 08:37:10 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 1cqxIv-0003ZD-Qf for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 08:37:05 +0100 Original-Received: from localhost ([::1]:54646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqxJ1-0008Ru-U6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 03:37:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqxIw-0008Rb-0E for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 03:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqxIs-0002RQ-TU for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 03:37:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqxIs-0002RF-Q1 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 03:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cqxIs-0002DU-GA for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Mar 2017 07:37: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.14902546118503 (code B ref 26126); Thu, 23 Mar 2017 07:37:02 +0000 Original-Received: (at 26126) by debbugs.gnu.org; 23 Mar 2017 07:36:51 +0000 Original-Received: from localhost ([127.0.0.1]:40081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqxIg-0002D5-M0 for submit@debbugs.gnu.org; Thu, 23 Mar 2017 03:36:50 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:54638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqxIe-0002Cp-Rx for 26126@debbugs.gnu.org; Thu, 23 Mar 2017 03:36:49 -0400 Original-Received: from detlef.gmx.de ([93.209.64.198]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MZwYd-1cbktb1F8h-00Lp6a; Thu, 23 Mar 2017 08:36:40 +0100 In-Reply-To: <83shm55bbj.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 22 Mar 2017 22:02:56 +0200") X-Provags-ID: V03:K0:3HytrmRjOIoVGforS39baPmHstFbTO2xRiHg8X3IXydQ8v+2ahl O43wwxTOgD35rG7k+WAV/QETNQLD+8NUYIGOGcmOBdNY45vp4iEIi9Ax3AjV+B+9mbVCGaO Nm1r1Ye4w4M9VCsRls4XxjfXanWm4fhG6fPjEW8p2XPsDnGxYsDfufPC0G5XLWTsmP3+FXi MU9Y/LMAG0y2jOr7Hx4/Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:DCOvfSMtvqk=:jxG5xhNiglbKt/ktLmAp3T 71PFErrFRQgO/rBeJJdNneWILkeV09+OLRSUYGAW/70wf/PtE7tD3tuMNBeN+Zo5oWvRGS4AU J7ITNbJ1LXCLP4ouewRn9Z5Z51XXrwvgr+a445BOdt4RZ9H3rs5KcNGDCFTL9KKwRHOkcti+x U8lRyiC+RCPERUHITGXhGwX2QXrzoOnoc8UCVUZGnWmf0yEtSD61vaHZUyIEiMpT9OI79LvWl 5pPjsTtqtJWADae75QUKHdBbFopV8pjzXdhBUPPb88fq741z0fhjH/KcVO+PBHNOJAF9R7pNe X3ozFoFB0CGp3hRnY6K+2TY9DdUNKnkdK/MKojt7gsD+niZGjqAPfLNHAQlCvzf4WdBoBNs/F /Lr/YI6yniaHR0GIvcn+Ui9AB4IoDZ34oOQvgKgou0wRZyKaByThRtl/CfNlpFPzy+sIAUe5o IfhhjLrIPpiBvjJtXWLdMyjcnBxA44g6NpKMVW3y6xHD3y4jITRwyLetvMz5rCMg5IlAAmX9J w524PBRWEjZbQzu0fUtDcXu5bi3szJjQo9FVjPZ38eQU+ihHCFdGrX+cVTBnSW2EINRzOC90A 7v/2p+usCvIFZnOR5T6iuFBli5g1qQ7pIbPB741aWLVJkCFMdIdKj/a0cdLsjTjGR+n0FRedZ imT221k2VrAtAU6zK1efbt/cG6NAS15D1cyd9wv1vpPTzxz32mJjl4F7/yT7FtI67Trx3VxKA yuLn2flg/aLot3wHHdgoN+XCsqsjehzFrwQS2D+BrfZlOVVNQT9vvhNd+dBN473TIFp+e2u9 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:130833 Archived-At: Eli Zaretskii writes: >> From: Michael Albinus >> Date: Wed, 22 Mar 2017 19:57:10 +0100 >> Cc: 26126@debbugs.gnu.org >> >> > This touches the question whether we're operating under the assumption, >> > that other Lisp-code (apart from filenotify.el) may freely call >> > inotify-add-watch or not. Because if it does, this has to be handled in >> > inotify.c. Otherwise we may handle it in filenotify.el . >> >> It is still possible to call inotify-add-watch and companions. However, >> we don't force this use; the Elisp manual decribes only filenoty.el >> functionality. > > IMO, Lisp programs should always go through filenotify.el, never via > backend-specific APIs. Then we shall emphasize this in the manual. Like this? --8<---------------cut here---------------start------------->8--- diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 9b6752c..09f7c18 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -2707,7 +2707,8 @@ File Notifications Since all these libraries emit different events on notified file changes, there is the Emacs library @code{filenotify} which provides a -unique interface. +unified interface. It is highly recommended to use this library +instead of the native ones. @defun file-notify-add-watch file flags callback Add a watch for filesystem events pertaining to @var{file}. This --8<---------------cut here---------------end--------------->8--- Best regards, Michael.