bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#59153: List project buffers


From: Juri Linkov
Subject: bug#59153: List project buffers
Date: Sat, 12 Nov 2022 20:02:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> +    (display-buffer (list-buffers-noselect arg nil filter-predicate))))
>
> I suppose we'll need an arity check here?
>
> So that this command also works in older emacsen with an install of
> project.el from ELPA.

Ah, I forgot about older emacsen.

> Alternatively, the command could set the value of
> Buffer-menu-filter-predicate inside the resulting buffer, rather than pass
> it as an argument to list-buffers-noselect.

Setting a buffer-local variable looks like a safer option since
Stefan M. warned many times that an arity check is not reliable.

But then need to display buffer twice: first call
list-buffers-noselect without an argument, then
set buffer-local Buffer-menu-filter-predicate,
then programmatically revert the buffer.





reply via email to

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