Subject: Re: bug#35755: auto-revert-buffers can cause error "Selecting deleted buffer"

From: Michael Albinus <[email-masked]>
Date: Thu, 16 May 2019 08:45:31 +0200

Paul Pogonyshev <[email-masked]> writes:

Hi Paul,

> To reproduce:
>
>     (with-temp-buffer
>       (auto-revert-mode)
>       (kill-buffer (current-buffer))
>       (auto-revert-buffers))
>
> The function is usually called from a timer, which means that if a
> killed buffer somehow ends in `auto-revert-buffer-list', Emacs becomes
> nearly unusable, because it spams with this error message non-stop.
>
> I don't know how exactly a killed buffer can end there, but it has
> happened to me several times already, probably after extensive C-g
> use.
>
> `auto-revert-buffers' must be fixed to never select killed buffers.

This looks like bug#34847, which is fixed in Emacs 27.0.50. Which Emacs
version are you using? If it isn't 27.0.50, do you have a chance to run
it, in order to check whether the bug is fixed for you?

Thanks, and best regards, Michael.