[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Added inotify support.
From: |
Eli Zaretskii |
Subject: |
Re: [PATCH] Added inotify support. |
Date: |
Tue, 11 Dec 2012 10:20:58 +0200 |
> From: Michael Albinus <address@hidden>
> Cc: Rüdiger Sonderfeld <address@hidden>,
> address@hidden, address@hidden, address@hidden
> Date: Tue, 11 Dec 2012 08:43:35 +0100
>
> Eli Zaretskii <address@hidden> 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?
No idea. Perhaps Rüdiger could help. Or step with a debugger through
the code and see what's going on.