Subject: Re: bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation

From: Michael Albinus <[email-masked]>
Date: Thu, 04 Apr 2013 20:45:03 +0200

Óscar Fuentes <[email-masked]> writes:

Hi Óscar,

> In a shell:
> $ echo hello > foo
> $ emacs -Q foo &
> $ echo bye > foo
>
> In Emacs:
> M-x auto-revert-mode
>
> <the buffer keeps showing "hello">
>
> In the past, after executing auto-revert-mode the buffer was reverted to
> the file's current contents. Nowadays, the buffer keeps showing the
> file's old contents until the file is modified again.
>
> This is obviously a bug because an unmodified buffer with
> auto-revert-mode enabled is supposed to show the current contents of its
> associated buffer.

auto-revert-mode uses file notifications now. In your scenario, no
notification reaches Emacs.

Likely, when *enabling* auto-revert-mode, it shall be checked whether
something has to be reverted initially. Will see (but not tonight,
rather tomorrow or over the weekend).

Best regards, Michael.