From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 09 09:36:16 2013 Received: (at submit) by debbugs.gnu.org; 9 Feb 2013 14:36:16 +0000 Received: from localhost ([127.0.0.1]:46007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4BXK-0006fK-RH for submit@debbugs.gnu.org; Sat, 09 Feb 2013 09:36:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56296) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4BXI-0006fD-8E for submit@debbugs.gnu.org; Sat, 09 Feb 2013 09:36:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4BX5-0001D8-VL for submit@debbugs.gnu.org; Sat, 09 Feb 2013 09:36:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:35854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4BX5-0001D0-Rp for submit@debbugs.gnu.org; Sat, 09 Feb 2013 09:35:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4BX2-00026F-QY for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2013 09:35:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4BWy-0001B6-OE for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2013 09:35:56 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:62758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4BWy-0001Aw-D3 for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2013 09:35:52 -0500 Received: by mail-pa0-f48.google.com with SMTP id hz10so2464872pad.35 for ; Sat, 09 Feb 2013 06:35:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:mime-version :content-type; bh=8Jh2AbRhq+f4xCa32xlQfD/NnsIqLr6xIGe/rReJ9Yw=; b=eOy2jwnGzwKbPFyhAshYUy1oSORV0Adb4T2QNmUx6qhY/+ATkuFfsvPbRBJrYalfuJ d4s8JQHOyxRjLwMVjH1c/OhCv08i3pbacp3k2C+tsf7POvS9qxV/O5HbgMqJWMOdHjKw zRpZp8ZBXIduEYzQ3gqpCkyfA99EsMutXXqAtn4PT7/2Ax8pA5fTanl1FwUw8yB4z3V5 jcQwMSbXWfNVkloeu3O3+tasGbwGsMTttoS1cPnoy67m1dx16nLidMp0WV6TKY8uSzQY l/nCVypjcXs+xrHGTKadntOPfqX4emks2aXhn34qiDOy88sGixI+924+LfIsGqx9XrTG quGg== X-Received: by 10.68.134.41 with SMTP id ph9mr4027275pbb.53.1360420551536; Sat, 09 Feb 2013 06:35:51 -0800 (PST) Received: from tsparkle (cm126.delta178.maxonline.com.sg. [59.189.178.126]) by mx.google.com with ESMTPS id l5sm60703623pax.10.2013.02.09.06.35.48 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 09 Feb 2013 06:35:50 -0800 (PST) From: Chong Yidong To: bug-gnu-emacs@gnu.org Subject: 24.3.50; inotify-add-watch fails in batch mode Date: Sat, 09 Feb 2013 22:35:49 +0800 Message-ID: <87obft367u.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) On latest trunk, `make check' fails with 2 unexpected results: FAILED ert-test-record-backtrace FAILED inotify-file-watch-simple The first of this is Bug#13064 (still not fixed; I couldn't disentangle the mess of CL-isms and closures involved in that bug). The second failure is relatively new: apparently, inotify-file-watch-simple works when Emacs is interactive but fails in batch mode. Another way to see this is to create a file with the contents (let* ((temp-file (make-temp-file "inotify-simple")) (events 0) (wd (inotify-add-watch temp-file t (lambda (ev) (setq events (1+ events)))))) (unwind-protect (progn (with-temp-file temp-file (insert "Foo\n")) (sit-for 5) (message ">> %d <<" events)) (inotify-rm-watch wd))) and run `emacs -batch -l foo.el'. This prints ">> 0 <<", indicating that the inotify watcher failed to run. If you repeat omitting -batch, ">> 4 <<" is printed, as expected. In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2013-02-09 on tsparkle Bzr revision: 111704 cyd@gnu.org-20130209050902-vge73m9xbyx96t2q Windowing system distributor `The X.Org Foundation', version 11.0.11301000 Configured using: `configure --with-x-toolkit=gtk3 CFLAGS=-g --no-create --no-recursion' From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 17 06:56:59 2014 Received: (at 13662-done) by debbugs.gnu.org; 17 Jan 2014 11:57:00 +0000 Received: from localhost ([127.0.0.1]:54503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W482l-0001Qw-IM for submit@debbugs.gnu.org; Fri, 17 Jan 2014 06:56:59 -0500 Received: from mout.gmx.net ([212.227.17.22]:62670) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W482h-0001Qm-PW for 13662-done@debbugs.gnu.org; Fri, 17 Jan 2014 06:56:57 -0500 Received: from detlef.gmx.de ([87.146.33.196]) by mail.gmx.com (mrgmx101) with ESMTPS (Nemesis) id 0LtmK9-1VNCbY3l9J-011Cmd for <13662-done@debbugs.gnu.org>; Fri, 17 Jan 2014 12:56:54 +0100 From: Michael Albinus To: Chong Yidong Subject: Re: bug#13662: 24.3.50; inotify-add-watch fails in batch mode References: <87obft367u.fsf@gnu.org> Date: Fri, 17 Jan 2014 12:56:51 +0100 In-Reply-To: <87obft367u.fsf@gnu.org> (Chong Yidong's message of "Sat, 09 Feb 2013 22:35:49 +0800") Message-ID: <87fvomstx8.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:Yj6e8iqhFJ4tCAAjrXeEadkDvmwdzrU+TwBazlYz4DcxZn+V4Te dIvI7kLnl0ktHbOtLyi9VYV2Iyvhf7QV7YWqubsZFahTwxLT17rpM9C/kTuGbJaiA7rhzT1 Vu1hrxC0Q+dqvux6UPvfL/KRo9NW2PQcUei/3MK3HVcW0a0epjgGeLBCGtYLKBfDVeTfo5j 9izoD7Wxch9l0woturXMg== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13662-done Cc: 13662-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Chong Yidong writes: > Another way to see this is to create a file with the contents > > (let* ((temp-file (make-temp-file "inotify-simple")) > (events 0) > (wd > (inotify-add-watch temp-file t (lambda (ev) > (setq events (1+ events)))))) > (unwind-protect > (progn > (with-temp-file temp-file > (insert "Foo\n")) > (sit-for 5) > (message ">> %d <<" events)) > (inotify-rm-watch wd))) > > and run `emacs -batch -l foo.el'. This prints ">> 0 <<", indicating > that the inotify watcher failed to run. If you repeat omitting -batch, > ">> 4 <<" is printed, as expected. Should be fixed with r116052. Instead of `sit-for', one needs to apply `read-event'. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 25 09:17:15 2014 Received: (at 13662) by debbugs.gnu.org; 25 Jan 2014 14:17:15 +0000 Received: from localhost ([127.0.0.1]:35217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W742t-00021a-4H for submit@debbugs.gnu.org; Sat, 25 Jan 2014 09:17:15 -0500 Received: from mtaout27.012.net.il ([80.179.55.183]:51946) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W742q-00021R-FV for 13662@debbugs.gnu.org; Sat, 25 Jan 2014 09:17:13 -0500 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0MZY00M00ML0KA00@mtaout27.012.net.il> for 13662@debbugs.gnu.org; Sat, 25 Jan 2014 16:16:27 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZY00H2ENNF7B90@mtaout27.012.net.il>; Sat, 25 Jan 2014 16:16:27 +0200 (IST) Date: Sat, 25 Jan 2014 16:16:57 +0200 From: Eli Zaretskii Subject: Re: bug#13662: 24.3.50; inotify-add-watch fails in batch mode In-reply-to: <87fvomstx8.fsf@gmx.de> X-012-Sender: halo1@inter.net.il To: Michael Albinus Message-id: <83zjmkb0yu.fsf@gnu.org> References: <87obft367u.fsf@gnu.org> <87fvomstx8.fsf@gmx.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 13662 Cc: 13662@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Michael Albinus > Date: Fri, 17 Jan 2014 12:56:51 +0100 > Cc: 13662-done@debbugs.gnu.org > > Chong Yidong writes: > > > Another way to see this is to create a file with the contents > > > > (let* ((temp-file (make-temp-file "inotify-simple")) > > (events 0) > > (wd > > (inotify-add-watch temp-file t (lambda (ev) > > (setq events (1+ events)))))) > > (unwind-protect > > (progn > > (with-temp-file temp-file > > (insert "Foo\n")) > > (sit-for 5) > > (message ">> %d <<" events)) > > (inotify-rm-watch wd))) > > > > and run `emacs -batch -l foo.el'. This prints ">> 0 <<", indicating > > that the inotify watcher failed to run. If you repeat omitting -batch, > > ">> 4 <<" is printed, as expected. > > Should be fixed with r116052. Instead of `sit-for', one needs to apply > `read-event'. This breaks the file-notify-test02-events test on w32. It looks like read-event never returns there. If I replace that with sit-for, it does return, but the test still fails because file-notify--test-results remains nil, something that wasn't being tested when I last ran the test (in early December). Frankly, given the inordinate amount of work it took to try to get file notifications work in batch mode, I'd rather we declared they are not expected to work in batch, and moved on. If you, for some reason, still want to stick with that test, please mark file-notify-test02-events to be skipped for w32, as I'm tired of fixing the breakage there time and again. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 26 10:56:08 2014 Received: (at 13662) by debbugs.gnu.org; 26 Jan 2014 15:56:08 +0000 Received: from localhost ([127.0.0.1]:36738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7S47-0001rZ-R0 for submit@debbugs.gnu.org; Sun, 26 Jan 2014 10:56:08 -0500 Received: from mout.gmx.net ([212.227.15.18]:51563) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7S45-0001rQ-Bl for 13662@debbugs.gnu.org; Sun, 26 Jan 2014 10:56:06 -0500 Received: from detlef.gmx.de ([87.146.55.50]) by mail.gmx.com (mrgmx003) with ESMTPS (Nemesis) id 0McEI3-1Vp6X62vd1-00Jdhg for <13662@debbugs.gnu.org>; Sun, 26 Jan 2014 16:56:04 +0100 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#13662: 24.3.50; inotify-add-watch fails in batch mode References: <87obft367u.fsf@gnu.org> <87fvomstx8.fsf@gmx.de> <83zjmkb0yu.fsf@gnu.org> Date: Sun, 26 Jan 2014 16:55:56 +0100 In-Reply-To: <83zjmkb0yu.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Jan 2014 16:16:57 +0200") Message-ID: <874n4q7n5f.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:EKXZnoaZG5qtmori1DXlyASLX2i56v7y2FyH6iWHbCxnGYaUAQo +pE11DBeqCfFo7pdRcp5D0eqxPPOmsZiqRo5sMxEJUczSeEQkJvF7FZFCe1rBcTJdIdCSMU FESlOS+rlOIER113WY32TFbmMMfqzvrdasmP3zII9/U3xVUE+ZQxNnHOLos7E6oYG2Q+sNi brPM0ctNn+ej+dmYozZLw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13662 Cc: 13662@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eli Zaretskii writes: >> Should be fixed with r116052. Instead of `sit-for', one needs to apply >> `read-event'. > > This breaks the file-notify-test02-events test on w32. Well, *this* bug report is about inotify-file-watch-simple, which should be skipped on w32. You are speaking about bug#16519. I will comment in another message. Best regards, Michael. From unknown Tue Aug 19 05:09:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 24 Feb 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator