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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Paul Pogonyshev-2
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.
Reply | Threaded
Open this post in threaded view
|

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

Michael Albinus
Paul Pogonyshev <[hidden email]> 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.



Reply | Threaded
Open this post in threaded view
|

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

Paul Pogonyshev-2
Yes, it got fixed recently (I had a 'master' snapshot from a couple of months back). Sorry for the duplicate.

On Thu, 16 May 2019 at 08:45, Michael Albinus <[hidden email]> wrote:
Paul Pogonyshev <[hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

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

Michael Albinus
Paul Pogonyshev <[hidden email]> writes:

Hi Paul,

> Yes, it got fixed recently (I had a 'master' snapshot from a couple of
> months back). Sorry for the duplicate.

No problem, I'm merging this bug with bug#34847.

Best regards, Michael.