unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Clarification about auto-revert-mode and inotify
@ 2014-10-21  7:00 Dima Kogan
  2014-10-21 13:43 ` Stefan Monnier
  0 siblings, 1 reply; 28+ messages in thread
From: Dima Kogan @ 2014-10-21  7:00 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 28+ messages in thread
* Clarification about auto-revert-mode and inotify
@ 2014-10-21  6:01 Dima Kogan
  0 siblings, 0 replies; 28+ messages in thread
From: Dima Kogan @ 2014-10-21  6:01 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 28+ messages in thread
* Clarification about auto-revert-mode and inotify
@ 2014-10-21  5:03 Dima Kogan
  0 siblings, 0 replies; 28+ messages in thread
From: Dima Kogan @ 2014-10-21  5:03 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2014-10-24  7:02 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21  7:00 Clarification about auto-revert-mode and inotify Dima Kogan
2014-10-21 13:43 ` 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

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).