GNU bug report logs -
#16519
24.3.50; gfile notifications not received in batch mode
Previous Next
Reported by: Michael Albinus <michael.albinus <at> gmx.de>
Date: Wed, 22 Jan 2014 09:51:01 UTC
Severity: normal
Found in version 24.3.50
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 16519 <at> debbugs.gnu.org (full text, mbox):
Michael Albinus <michael.albinus <at> gmx.de> 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.
This bug report was last modified 11 years and 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.