Subject: Re: bug#59935: 29.0.60; project-list-buffers is slow

From: Eli Zaretskii <[email-masked]>
Date: Sat, 10 Dec 2022 13:12:14 +0200

> Date: Sat, 10 Dec 2022 12:47:38 +0200
> Cc: [email-masked], [email-masked]
> From: Dmitry Gutov <[email-masked]>
> 
> > If so, I don't understand why a
> > trivial change to project-list-buffers could not call project-buffers
> > just once, and then reuse the value in the call to
> > list-buffers-noselect both as the BUFFER-LIST argument and (if needed)
> > in the FILTER-PREDICATE argument, using memq.
> 
> If we just do that, pressing 'g' will only show the buffers that 
> belonged to the project when project-list-buffers was called. And not 
> necessarily the *current* list of project buffers.
> 
> The previously attached patches solved that problem.

I don't understand: how is 'g' relevant?  You were talking about
'C-x p C-b' in your original message.