From: Michael Albinus <michael.albinus@gmx.de>
To: Chong Yidong <cyd@gnu.org>
Cc: 13662-done@debbugs.gnu.org
Subject: bug#13662: 24.3.50; inotify-add-watch fails in batch mode
Date: Fri, 17 Jan 2014 12:56:51 +0100 [thread overview]
Message-ID: <87fvomstx8.fsf@gmx.de> (raw)
In-Reply-To: <87obft367u.fsf@gnu.org> (Chong Yidong's message of "Sat, 09 Feb 2013 22:35:49 +0800")
Chong Yidong <cyd@gnu.org> 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.
next prev parent reply other threads:[~2014-01-17 11:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-09 14:35 bug#13662: 24.3.50; inotify-add-watch fails in batch mode Chong Yidong
2014-01-17 11:56 ` Michael Albinus [this message]
2014-01-25 14:16 ` Eli Zaretskii
2014-01-26 15:55 ` Michael Albinus
2014-01-26 16:09 ` bug#16519: 24.3.50; gfile notifications not received " Michael Albinus
2014-01-26 17:43 ` Michael Albinus
2014-01-27 16:08 ` Michael Albinus
2014-01-29 18:14 ` Eli Zaretskii
2014-01-30 10:03 ` Michael Albinus
2014-01-30 17:03 ` Eli Zaretskii
2014-01-31 14:11 ` Michael Albinus
2014-01-31 15:17 ` Eli Zaretskii
2014-01-31 16:00 ` Michael Albinus
2014-01-31 16:53 ` Eli Zaretskii
2014-02-03 13:31 ` Michael Albinus
2014-02-03 16:13 ` Eli Zaretskii
2014-02-04 11:43 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fvomstx8.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=13662-done@debbugs.gnu.org \
--cc=cyd@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.