* bug#42332: Function to add projects to project--list
@ 2020-07-12 6:43 Sean Whitton
2020-07-25 0:19 ` Dmitry Gutov
0 siblings, 1 reply; 2+ messages in thread
From: Sean Whitton @ 2020-07-12 6:43 UTC (permalink / raw)
To: 42332; +Cc: dgutov, juri
Hello,
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))
--
Sean Whitton
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#42332: Function to add projects to project--list
2020-07-12 6:43 bug#42332: Function to add projects to project--list Sean Whitton
@ 2020-07-25 0:19 ` Dmitry Gutov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Gutov @ 2020-07-25 0:19 UTC (permalink / raw)
To: Sean Whitton, 42332-done; +Cc: juri
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-25 0:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-12 6:43 bug#42332: Function to add projects to project--list Sean Whitton
2020-07-25 0:19 ` Dmitry Gutov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).