From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Tue, 11 Dec 2012 21:17:16 +0100 Message-ID: <87pq2guywj.fsf@gmx.de> References: <83hant9ez9.fsf@gnu.org> <87wqwo4kbq.fsf@gmx.de> <10703269.FSsrMgS37Z@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355257052 25212 80.91.229.3 (11 Dec 2012 20:17:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 20:17:32 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, sdl.web@gmail.com, monnier@iro.umontreal.ca To: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 21:17:45 2012 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 1TiWGv-0007n4-Gj for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 21:17:45 +0100 Original-Received: from localhost ([::1]:57043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiWGi-0007qC-Q2 for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 15:17:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiWGe-0007pg-UJ for emacs-devel@gnu.org; Tue, 11 Dec 2012 15:17:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiWGY-00040n-Lh for emacs-devel@gnu.org; Tue, 11 Dec 2012 15:17:28 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:49438) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TiWGY-00040a-Ak for emacs-devel@gnu.org; Tue, 11 Dec 2012 15:17:22 -0500 Original-Received: (qmail invoked by alias); 11 Dec 2012 20:17:20 -0000 Original-Received: from p57BB98D5.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.213] by mail.gmx.net (mp038) with SMTP; 11 Dec 2012 21:17:20 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/5dhNT7x75/mZoQm1JIL2nvjEeu/G/Ap1SnyOQ88 n3Rof2R4PJb2Fs In-Reply-To: <10703269.FSsrMgS37Z@descartes> (=?utf-8?Q?=22R=C3=BCdiger?= Sonderfeld"'s message of "Tue, 11 Dec 2012 17:46:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.22 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:155477 Archived-At: R=C3=BCdiger Sonderfeld writes: >> Is there a reason, that CLOSE (and also MOVE) are not handled in >> mask_to_aspects? > > IN_CLOSE and IN_MOVE are not separate events but convenience macros. > > From the notify(7) manpage > > Two additional convenience macros are IN_MOVE, which equates to > IN_MOVED_FROM|IN_MOVED_TO, and IN_CLOSE, which equates to IN_CLOSE_WRITE| > IN_CLOSE_NOWRITE. I see. I will filter them out in the Trammp handler as well. Maybe you could precise it in the docstring of inotify-add-watch. Close, move and all-events are separated from the other aspects, but there is no reasoning why. And midterm it might be useful to describe the inotify mecahnism in the Elisp manual in more detail. > Regards, > R=C3=BCdiger Best regards, Michael.