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 08:43:35 +0100 Message-ID: <87a9tl6nko.fsf@gmx.de> References: <2181827.T3JxG88qQt@descartes> <83mwxmazu7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355211826 21555 80.91.229.3 (11 Dec 2012 07:43:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 07:43:46 +0000 (UTC) Cc: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld , sdl.web@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 08:43:59 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 1TiKVT-0003er-Bq for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 08:43:59 +0100 Original-Received: from localhost ([::1]:39878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiKVG-0004Pl-EZ for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2012 02:43:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiKVC-0004Pc-KY for emacs-devel@gnu.org; Tue, 11 Dec 2012 02:43:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiKVB-0002Zo-Ea for emacs-devel@gnu.org; Tue, 11 Dec 2012 02:43:42 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:56496) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TiKVB-0002Zb-43 for emacs-devel@gnu.org; Tue, 11 Dec 2012 02:43:41 -0500 Original-Received: (qmail invoked by alias); 11 Dec 2012 07:43:38 -0000 Original-Received: from p57BB98D5.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.213] by mail.gmx.net (mp004) with SMTP; 11 Dec 2012 08:43:38 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+0EwULkVG0O2P+qmzUOZkmhos+g4arSoza3jYv2z q6lENl69/Dccih In-Reply-To: <83mwxmazu7.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 Dec 2012 13:52:48 +0200") 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 3.x [generic] 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:155449 Archived-At: Eli Zaretskii writes: > Committed (with necessary fixes and additions, like ChangeLog entries > and NEWS) as trunk revision 111171. I've played a little bit with this. Looks, like not all events are handled by the callback. Testcase: In a shell, a have applied $ inotifywait -mq /tmp/123 In another shell, I have started Emacs $ emacs --eval "(inotify-add-watch \"/tmp/123\" t (lambda (&rest rest) (message \"callback %s\" rest)))" Then I have modified&saved /tmp/123. In the first shell, I see /tmp/123 MODIFY /tmp/123 OPEN /tmp/123 MODIFY /tmp/123 CLOSE_WRITE,CLOSE But in Emacs' *Messages* buffer, there's only callback ((1 (modify) 0 nil)) callback ((1 (close-write) 0 nil)) What do I miss? > Thanks. Best regards, Michael.