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: martin rudalics
Subject: Re: [PATCH] Re: Should (buffer-list) ever return killed buffers?
Date: Mon, 24 May 2021 18:04:25 +0200

>> Sergey never told us but it's likely `aref' choking on nil.
>
> Then why not use buffer-live-p?

The bug is in `buffer-list' which should not return dead buffers.  It
should either bind Qinhibit_quit around all Lisp routines it calls or
better use _no_quit functions for handling lists that are known to be
non-circular like Vbuffer_list.

Note in this regard that even the `reorder-buffer-list' from the Elisp
manual will fail in the same way because it uses FOR_EACH_TAIL_INTERNAL
too.

martin



reply via email to

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