From: Dima Kogan <dima@secretsauce.net>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 18958-done@debbugs.gnu.org
Subject: bug#18958: 25.0.50; auto-revert-mode reacts slowly even if using an event-driven backend
Date: Sun, 22 Feb 2015 19:47:35 -0800 [thread overview]
Message-ID: <87bnkl9tcm.fsf@secretsauce.net> (raw)
In-Reply-To: <87fv9ygtmo.fsf@gmx.de>
Michael Albinus <michael.albinus@gmx.de> writes:
> Dima Kogan <dima@secretsauce.net> writes:
>
>> In a perfect world, this 1-second delay would be removed upstream, and
>> we'd use gfilenotify for everything. In the meantime, is gfilenotify
>> better in any way on Linux? If the notifications are unavailable for
>> some reason (network-mounted file for instance), then emacs simply
>> decays to the normal polled notifications, right?
>
> You mean auto-revert, right? And yes, if `file-notify-add-watch' doesn't
> return a proper watch descriptor, auto-revert falls back to its polling
> mode.
Yes, I meant auto-revert.
> glib is said to use also polling for file systems where you don't have
> native file notification support. This would make it superior to inotify
> for mounted filesystems, and alike.
But how is it superior? Didn't you just say that when inotify fails then
emacs polls, just as would happen with gfilenotify? To confirm, I just
used an inotify-configured emacs to auto-revert on a file mounted on a
network samba mount. As expected, the auto-revert-mode does work, but in
a polled instead of event-driven fashion. So unless I'm missing
something, then when you run the current emacs code on Linux both
inotify and gfile work the same way EXCEPT gfile always has a 1-second
notification delay while inotify does not. I'm probably missing
something.
next prev parent reply other threads:[~2015-02-23 3:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 19:01 bug#18958: 25.0.50; auto-revert-mode reacts slowly even if using an event-driven backend Dima Kogan
2014-11-07 20:01 ` Stefan Monnier
2015-02-19 20:41 ` Michael Albinus
2015-02-20 9:59 ` Dima Kogan
2015-02-20 10:25 ` Michael Albinus
2015-02-21 3:38 ` Dima Kogan
2015-02-21 9:57 ` Michael Albinus
2015-02-21 11:39 ` Eli Zaretskii
2015-02-21 12:43 ` Michael Albinus
2015-02-28 15:31 ` Eli Zaretskii
2015-02-21 22:38 ` Dima Kogan
2015-02-22 9:53 ` Michael Albinus
2015-02-22 15:57 ` Eli Zaretskii
2015-02-23 3:47 ` Dima Kogan [this message]
2015-02-23 16:05 ` Michael Albinus
2015-02-23 19:51 ` Dima Kogan
2015-02-24 8:42 ` 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=87bnkl9tcm.fsf@secretsauce.net \
--to=dima@secretsauce.net \
--cc=18958-done@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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.