From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: [PATCH updated] Support for filesystem watching (inotify) Date: Sun, 05 Jun 2011 04:15:44 +0200 Message-ID: <871uz9m3an.fsf@ambire.localdomain> References: <201106040034.15598.ruediger@c-plusplus.de> <201106041913.09203.ruediger@c-plusplus.de> <8762olmk6y.fsf@ambire.localdomain> <201106050143.17405.ruediger@c-plusplus.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307240185 8470 80.91.229.12 (5 Jun 2011 02:16:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2011 02:16:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 05 04:16:19 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QT2t0-0003ms-VH for ged-emacs-devel@m.gmane.org; Sun, 05 Jun 2011 04:16:19 +0200 Original-Received: from localhost ([::1]:54433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QT2sz-0005td-Sq for ged-emacs-devel@m.gmane.org; Sat, 04 Jun 2011 22:16:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QT2sh-0005tB-1j for emacs-devel@gnu.org; Sat, 04 Jun 2011 22:16:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QT2sf-0005gP-Aa for emacs-devel@gnu.org; Sat, 04 Jun 2011 22:15:58 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:52960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QT2se-0005gL-Oz for emacs-devel@gnu.org; Sat, 04 Jun 2011 22:15:57 -0400 Original-Received: from ambire.localdomain (82.58.3.236) by smtp204.alice.it (8.5.124.08) id 4DE62ADD00476C38; Sun, 5 Jun 2011 04:15:54 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1QT2sS-0005AK-Tt; Sun, 05 Jun 2011 04:15:44 +0200 In-Reply-To: <201106050143.17405.ruediger@c-plusplus.de> (=?utf-8?Q?=22R?= =?utf-8?Q?=C3=BCdiger?= Sonderfeld"'s message of "Sun, 5 Jun 2011 01:43:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.100 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:140183 Archived-At: () R=C3=BCdiger Sonderfeld () Sun, 5 Jun 2011 01:43:16 +0200 Yes, this is a bit complicated. The inotify API itself does not create a= =20 separate event number if you try to watch the same file. But this could = of=20 course be done in the implementation by checking which callback correspo= nds to=20 which event. But I'm not sure if this is the right way to handle it. [...] Sadly acons is not available from the C API. Perhaps the book-keeping parts should be moved to Lisp.