emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should (buffer-list) ever return killed buffers?


From: Stefan Monnier
Subject: Re: Should (buffer-list) ever return killed buffers?
Date: Sun, 23 May 2021 23:32:59 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> - while processing that list, some of its buffers die.
>> So I think the bug is in `desktop-clear` which should skip buffers that
>> have died between the call to `buffer-list` and the moment we get to
>> process them.
>
> Yep, looks like this. The only question then is why didn't it ever fail
> for me before, for about 10 years, and started to fail only recently,
> despite "desktop.el" is like that for ages, as far as I can see. And how
> running from a timer could be involved?

It all depends on what's going on the loop, the order of buffers in the
list, etc.... it's not hard to imagine a slight innocent change
somewhere introducing this corner case where it didn't show up earlier.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]