GNU bug report logs - #35755
auto-revert-buffers can cause error "Selecting deleted buffer"

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Wed, 15 May 2019 20:08:01 UTC

Severity: normal

Tags: fixed, patch

Merged with 34847

Found in version 27.0.50

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: 35755 <at> debbugs.gnu.org
Subject: bug#35755: auto-revert-buffers can cause error "Selecting deleted buffer"
Date: Wed, 15 May 2019 22:06:47 +0200
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.