emacs-devel
[Top][All Lists]
Advanced

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

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


From: Stefan Monnier
Subject: Re: [PATCH] Re: Should (buffer-list) ever return killed buffers?
Date: Mon, 24 May 2021 15:01:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> The bug is in `buffer-list' which should not return dead buffers.
> I don't think it's practical to guarantee that,

Actually, I think it does guarantee that currently (at least when
called with no arguments).

> given the myriad of hooks we have.

But none of them can be called during the execution of `buffer-list` so
it's easy to ensure that all the buffers are live.

Of course, that won't solve the problem here where the buffers become
dead subsequently while the code is iterating through the list
previously returned by `buffer-list`.


        Stefan




reply via email to

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