From: Michael Albinus <michael.albinus@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: New file notification event `stopped'
Date: Sat, 10 Oct 2015 13:56:43 +0200 [thread overview]
Message-ID: <877fmvgcn8.fsf@gmx.de> (raw)
In-Reply-To: <83vbafrpag.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Oct 2015 13:28:07 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> Nobody did reply.
>
> I did. Or I thought I did, but now I cannot find my response in the
> archives. Maybe it's my imagination, or maybe it has something to do
> with the recent snafu in GNU mailman archives.
At least I haven't received an email from you on this topic. Usually,
you Cc the sender of a message.
> Anyway, my response boils down to this: I don't think we should make
> notification back-ends invent events that are not reported by the
> respective OS facilities. Doing that is the job of filenotify.el.
D'accord. I have no specific plan yet how to implement this in the
backends, maybe they could be kept untouched. I've tried to show that
inotify.c sends already the needed event (`ignored'), and gfilenotify.c
seems also to send useful events about (`deleted', `renamed' and
`unmounted'). Maybe there is indeed nothing to do. If this is also the
case for w32notify.c - even better.
> In addition, I don't know how to implement this in w32notify.c, at
> least not easily. As I said, when the watched directory is deleted,
> the thread that watches exits with an error status, that's all.
But isn't there at least the `removed' event? Or is it just for files of
the watched directory, and not the directory itself?
In the latter case, we would need a trigger indeed. Maybe sending an
additional `removed' event for the directory could be an option?
> What problem should this 'stopped' event solve? Do we really have a
> real-life problem here, and if so, couldn't we solve it in some other
> manner?
Imagine you have a file under supervision in auto-revert-mode. If the
watch is broken or removed (by a *-rm-watch call), autorevert could
still work due to the polling mechanism in autorevert.el.
Best regards, Michael.
next prev parent reply other threads:[~2015-10-10 11:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-27 9:08 New file notification event `stopped' Michael Albinus
2015-10-10 10:13 ` Michael Albinus
2015-10-10 10:28 ` Eli Zaretskii
2015-10-10 11:56 ` Michael Albinus [this message]
2015-10-10 12:25 ` Eli Zaretskii
2015-10-10 13:35 ` Michael Albinus
2015-10-10 13:41 ` Eli Zaretskii
2015-10-10 14:35 ` Michael Albinus
2015-10-25 13:21 ` Michael Albinus
2015-10-25 19:57 ` Eli Zaretskii
2015-10-25 22:35 ` 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=877fmvgcn8.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=eliz@gnu.org \
--cc=emacs-devel@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.