From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Tue, 11 Dec 2012 17:46:01 +0100 Message-ID: <10703269.FSsrMgS37Z@descartes> References: <83hant9ez9.fsf@gnu.org> <87wqwo4kbq.fsf@gmx.de> 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 1355244407 31949 80.91.229.3 (11 Dec 2012 16:46:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 16:46:47 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, sdl.web@gmail.com, monnier@iro.umontreal.ca To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 17:47:00 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 1TiSys-0002Yv-R7 for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 17:46:54 +0100 Original-Received: from localhost ([::1]:51859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiSyg-0006hS-7I for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 11:46:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiSyV-0006Yt-EK for emacs-devel@gnu.org; Tue, 11 Dec 2012 11:46:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiSyJ-00018n-C1 for emacs-devel@gnu.org; Tue, 11 Dec 2012 11:46:31 -0500 Original-Received: from ptmx.org ([178.63.28.110]:56632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiSyB-00014p-R6; Tue, 11 Dec 2012 11:46:11 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id E040C25B66; Tue, 11 Dec 2012 17:46:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kia250WaDaAY; Tue, 11 Dec 2012 17:46:06 +0100 (CET) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 6944B2120C; Tue, 11 Dec 2012 17:46:06 +0100 (CET) User-Agent: KMail/4.9.2 (Linux/3.5.0-18-generic; KDE/4.9.2; x86_64; ; ) In-Reply-To: <87wqwo4kbq.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 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:155472 Archived-At: On Tuesday 11 December 2012 17:36:41 Michael Albinus wrote: > I've fixed this in the trunk. Thanks! > There is still something not clear to me: An inotify event >=20 > /tmp/123 CLOSE_WRITE,CLOSE >=20 > is transformed into an Emacs event >=20 > (file-notify (1 (close-write) 0 nil) callback) >=20 > 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=20 IN_MOVED_FROM|IN_MOVED_TO, and IN_CLOSE, which equates to IN_CLOSE_WRIT= E| IN_CLOSE_NOWRITE. Regards, R=C3=BCdiger