bug#42332: Function to add projects to project--list

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

bug#42332: Function to add projects to project--list

Dmitry Gutov
On 12.07.2020 09:43, Sean Whitton wrote:

> I just added this to my init file, but it uses the private function
> project--add-to-project-list-front -- it would be good to have an API
> function to add arbitrary projects from Lisp.
>
>      (defun spw/register-programming-projects-and-switch ()
>        (interactive)
>        (dolist (directory (spw/all-programming-projects))
>          (when-let ((project (project-current nil directory)))
>            (project--add-to-project-list-front project)))
>        (call-interactively 'project-switch-project))

Thanks for the report.

I did a rename, and 'project-remember-project' is a public function now.