unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dima Kogan <lists@dima.secretsauce.net>
To: emacs-devel@gnu.org
Subject: Clarification about auto-revert-mode and inotify
Date: Tue, 21 Oct 2014 00:00:40 -0700	[thread overview]
Message-ID: <87vbnd9aab.fsf@secretsauce.net> (raw)

Hi.

I'm running an emacs recently built from source, and the
auto-revert-mode functionality is confusing to me.

I configured with --with-file-notification=inotify. With this I would
expect auto-revert-mode buffers to be updated immediately, possibly with
some throttling. I do not observe this; it still takes ~5 seconds for
the buffers to update.

Ltrace tells me that inotify_...() functions ARE being called. It also
tells me that inotify_callback() is called immediately after a file
update, but the buffer is not updated immediately. Is this intended
behavior or a bug? The recent 24.4 release touts inotify support in its
NEWS; does this mean simply that auto-revert is more efficient?

dima



             reply	other threads:[~2014-10-21  7:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21  7:00 Dima Kogan [this message]
2014-10-21 13:43 ` Clarification about auto-revert-mode and inotify Stefan Monnier
2014-10-21 15:08   ` Eli Zaretskii
2014-10-21 16:28     ` Stefan Monnier
2014-10-21 17:47       ` Eli Zaretskii
2014-10-21 20:23         ` Stefan Monnier
2014-10-21 20:32           ` Eli Zaretskii
2014-10-21 21:32             ` Stefan Monnier
2014-10-22  2:47               ` Eli Zaretskii
2014-10-22  3:20                 ` Stefan Monnier
2014-10-22 14:47                   ` Eli Zaretskii
2014-10-22 17:09                     ` Stefan Monnier
2014-10-24  7:02                       ` Dima Kogan
2014-10-21 17:59   ` Dima Kogan
2014-10-21 18:34     ` Eli Zaretskii
2014-10-21 18:59       ` Dima Kogan
2014-10-21 19:36         ` Eli Zaretskii
2014-10-21 19:39           ` Dima Kogan
2014-10-21 20:09             ` Eli Zaretskii
2014-10-21 20:29               ` Dima Kogan
2014-10-22  2:42                 ` Eli Zaretskii
2014-10-22  5:36                   ` Per Starbäck
2014-10-22 14:51                     ` Eli Zaretskii
2014-10-22 19:08                       ` Per Starbäck
2014-10-22 19:35                         ` Eli Zaretskii
2014-10-22 10:13               ` Florian Weimer
  -- strict thread matches above, loose matches on Subject: below --
2014-10-21  6:01 Dima Kogan
2014-10-21  5:03 Dima Kogan

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vbnd9aab.fsf@secretsauce.net \
    --to=lists@dima.secretsauce.net \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).