GNU bug report logs - #72532
[PATCH] ; lisp/progmodes/which-func.el (which-function-mode): check buffer

Previous Next

Package: emacs;

Reported by: Raffael Stocker <r.stocker <at> mnet-mail.de>

Date: Thu, 8 Aug 2024 19:50:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Raffael Stocker <r.stocker <at> mnet-mail.de>
Cc: 72532 <at> debbugs.gnu.org
Subject: bug#72532: [PATCH] ; lisp/progmodes/which-func.el (which-function-mode): check buffer
Date: Fri, 09 Aug 2024 08:27:06 +0300
> From: Raffael Stocker <r.stocker <at> mnet-mail.de>
> Date: Thu, 08 Aug 2024 21:48:45 +0200
> 
> I have been getting "Selecting deleted buffer" errors recently when
> opening files.  This is due to ‘which-function-mode’ (in my
> prog-mode-hook) walking through (buffer-list) without checking for live
> buffers.
> 
> I have not been able to reproduce with ‘emacs -Q’, but it seems to be
> connected to eglot, as I see the problem only with eglot enabled.
> 
> Nevertheless, I would like to suggest the attached patch, if only to
> make which-function-mode more robust.

Thanks, but please show a couple of Lisp backtraces you get for this
error.  We'd like to be sure we are fixing the problem you report, not
some other problem.




This bug report was last modified 340 days ago.

Previous Next


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