From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#16519: 24.3.50; gfile notifications not received in batch mode Date: Mon, 27 Jan 2014 17:08:35 +0100 Message-ID: <87y521if0c.fsf@gmx.de> References: <87obft367u.fsf@gnu.org> <87fvomstx8.fsf@gmx.de> <83zjmkb0yu.fsf@gnu.org> <87zjmi67yl.fsf_-_@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390838953 28861 80.91.229.3 (27 Jan 2014 16:09:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 16:09:13 +0000 (UTC) Cc: 16519@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 27 17:09:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1W7okP-0002uv-Jo for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 17:09:17 +0100 Original-Received: from localhost ([::1]:60357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7okO-0000XK-VO for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 11:09:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7okG-0000WK-Uv for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 11:09:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7okB-0002v7-3o for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 11:09:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7okB-0002v3-0C for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 11:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7okA-0003wo-Al for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 11:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jan 2014 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16519 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16519-submit@debbugs.gnu.org id=B16519.139083892515148 (code B ref 16519); Mon, 27 Jan 2014 16:09:02 +0000 Original-Received: (at 16519) by debbugs.gnu.org; 27 Jan 2014 16:08:45 +0000 Original-Received: from localhost ([127.0.0.1]:38282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7ojs-0003wF-5L for submit@debbugs.gnu.org; Mon, 27 Jan 2014 11:08:44 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:53046) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7ojo-0003w3-BQ for 16519@debbugs.gnu.org; Mon, 27 Jan 2014 11:08:41 -0500 Original-Received: from detlef.gmx.de ([93.209.86.16]) by mail.gmx.com (mrgmx102) with ESMTPS (Nemesis) id 0MK3bN-1W6zOC47T3-001OHz for <16519@debbugs.gnu.org>; Mon, 27 Jan 2014 17:08:39 +0100 In-Reply-To: <87zjmi67yl.fsf_-_@gmx.de> (Michael Albinus's message of "Sun, 26 Jan 2014 17:09:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:+yZpIc9SYdWUr8QmVxoKcVTWToNUltcrb2uBIJorg7IyoVaw03H xj9nhq1DjA8cZcHpHt5CPBNM0MjtTwLepz5cHoFFQgqmrARQNBjtsed2TKrGzszW1YrnWns STm3Htbz+JrwpwbrIAcS9sOAEtMOj0dvQwf4NvmHXKjqc4hGRoppeK6gLgdy7f9JTKQuc12 tHO6c4I2Cv2StNkYT76Bw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84119 Archived-At: Michael Albinus writes: > I don't know what it needs on w32 to get the file notification > events. Is it sit-for? Finally, the following seems to work for all three file notification libraries in interactive mode, and for inotify in batch mode: (defmacro file-notify--wait-for-events (timeout until) "Wait for file notification events until form UNTIL is true. TIMEOUT is the maximum time to wait for, in seconds." `(with-timeout (,timeout (ignore)) (while (null ,until) (let (noninteractive) (sit-for 0.1 'nodisplay))))) I am not able to test w32notify in batch mode. The following call from a CMD terminal works fine for me: C:\>"C:\Program Files\emacs\bin\runemacs.exe" -Q -l Y:\file-notify-tests.el -f ert However, the batch-mode equivalent returns immediately without running the test: C:\>"C:\Program Files\emacs\bin\runemacs.exe" -batch -Q -l Y:\file-notify-tests.el -f ert-run-tests-batch-and-exit What do I miss? Best regards, Michael.