Subject: bug#76587: 31.0.50; [FR] project.el should have a way to exclude certain projects from being saved

From: Dmitry Gutov <[email-masked]>
Date: Sun, 2 Mar 2025 05:31:15 +0200

On 28/02/2025 05:48, Visuwesh wrote:
> I see one caller of project--remember-dir, project-switch-project, that
> does not have the project object handy.  Maybe we could do
> 
>      (project--remember-dir dir nil (project-current nil dir))
> 
> in place of the current call in project-switch-project?

Hm yeah, I suppose that would be okay: project-switch-project is not 
required to be very fast, and project search often uses cache.

And when the project value is available, the call to be made to 
project-remember-project instead - this one could do the filtering as 
well. So no need to add new arg to project--remember-dir.