GNU bug report logs - #79280
package installation leaks tar-mode data buffers

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Date: Wed, 20 Aug 2025 17:51:02 UTC

Severity: normal

Done: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Full log


Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Emacs Bug Report <bug-gnu-emacs <at> gnu.org>
Subject: Re: package installation leaks tar-mode data buffers
Date: Thu, 21 Aug 2025 13:52:20 +0200
20 aug. 2025 kl. 23.06 skrev Stefan Monnier <monnier <at> iro.umontreal.ca>:

> Maybe we should be more careful when we skip `kill-buffer-hook`.
> Maybe we should run the local part of the hook (and skip the global part)?

Yes, I considered that but was worried about not having a hard way to kill a buffer without misguided kill-buffer-hook functions getting in the way. We'd be adding an override to the override, then an override to the override to the override, and so on.

A more principled solution might be to make buffers GC-able like any other object, at least optionally. Exactly how to do this can be discussed but maybe just being able to remove a buffer from Vbuffer_alist would do. (We have one buffer like that, Vprin1_to_string.) Of course, we'd have to teach the GC to destroy buffers. Fkill_buffer is depressingly long and complicated and should be broken up in smaller parts.

For now I'll just push the patch as a stopgap measure, but am definitely open to better solutions.





This bug report was last modified 13 days ago.

Previous Next


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