unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Yuri D'Elia <wavexx@thregr.org>
Cc: emacs-devel@gnu.org
Subject: Re: Auto-revert/notify behavior changed?
Date: Thu, 19 May 2022 08:03:18 +0300	[thread overview]
Message-ID: <83czgadsh5.fsf@gnu.org> (raw)
In-Reply-To: <87tu9mwngl.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Wed, 18 May 2022 23:16:42 +0200)

> From: Yuri D'Elia <wavexx@thregr.org>
> Date: Wed, 18 May 2022 23:16:42 +0200
> 
> I'm using auto-revert-mode for a few specific files (the mode is enabled
> via dir-locals.el).
> 
> A few months ago the files were reverted pretty much instantaneously
> when changes occurred on disk, as expected.
> 
> This doesn't seem to be the case in the current master anymore despite
> me not changing or seeing anything related in the latest changes in
> autorevert.el.

Can you be a bit more quantitative here?  What is the auto-revert
delays you see now, and what were they before?

> Setting a shorter auto-revert-interval seems to work, which (I guess)
> notifications are not working as expected, despite these buffers being
> associated to boring regular files.

So if you set auto-revert-avoid-polling to nil, files aren't
auto-reverted at all?

It is easy to check whether notifications work: e.g., use the test
suite.

> I double-checked my config, and emacs is always built with notification
> support (inotify).
> 
> I'm not sure where to start looking...

Could it be that something in your system changed, something related
to inotify?



  reply	other threads:[~2022-05-19  5:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-18 21:16 Auto-revert/notify behavior changed? Yuri D'Elia
2022-05-19  5:03 ` Eli Zaretskii [this message]
2022-05-19  7:20   ` 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

  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=83czgadsh5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=wavexx@thregr.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).