From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Added inotify support. Date: Tue, 11 Dec 2012 10:20:58 +0200 Message-ID: <83hant9ez9.fsf@gnu.org> References: <2181827.T3JxG88qQt@descartes> <83mwxmazu7.fsf@gnu.org> <87a9tl6nko.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1355214081 7089 80.91.229.3 (11 Dec 2012 08:21:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 08:21:21 +0000 (UTC) Cc: ruediger@c-plusplus.de, sdl.web@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 09:21:34 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 1TiL5p-0006nH-PZ for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 09:21:33 +0100 Original-Received: from localhost ([::1]:34440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiL5d-0003Vs-0y for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 03:21:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiL5Z-0003VU-Ph for emacs-devel@gnu.org; Tue, 11 Dec 2012 03:21:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiL5S-0005Ka-8y for emacs-devel@gnu.org; Tue, 11 Dec 2012 03:21:17 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:55751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiL5S-0005KO-1L for emacs-devel@gnu.org; Tue, 11 Dec 2012 03:21:10 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MEU00800XRZF200@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Tue, 11 Dec 2012 10:21:05 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEU008G2XV4EZ00@a-mtaout23.012.net.il>; Tue, 11 Dec 2012 10:21:05 +0200 (IST) In-reply-to: <87a9tl6nko.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:155457 Archived-At: > From: Michael Albinus > Cc: R=FCdiger Sonderfeld , > emacs-devel@gnu.org, monnier@iro.umontreal.ca, sdl.web@gmail.co= m > Date: Tue, 11 Dec 2012 08:43:35 +0100 >=20 > Eli Zaretskii writes: >=20 > > Committed (with necessary fixes and additions, like ChangeLog ent= ries > > and NEWS) as trunk revision 111171. >=20 > I've played a little bit with this. Looks, like not all events are > handled by the callback. Testcase: >=20 > In a shell, a have applied >=20 > $ inotifywait -mq /tmp/123 >=20 > In another shell, I have started Emacs >=20 > $ emacs --eval "(inotify-add-watch \"/tmp/123\" t (lambda (&rest re= st) (message \"callback %s\" rest)))" >=20 > Then I have modified&saved /tmp/123. In the first shell, I see >=20 > /tmp/123 MODIFY=20 > /tmp/123 OPEN=20 > /tmp/123 MODIFY=20 > /tmp/123 CLOSE_WRITE,CLOSE=20 >=20 > But in Emacs' *Messages* buffer, there's only >=20 > callback ((1 (modify) 0 nil)) > callback ((1 (close-write) 0 nil)) >=20 > What do I miss? No idea. Perhaps R=FCdiger could help. Or step with a debugger thro= ugh the code and see what's going on.