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

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

bug#42332: closed (Function to add projects to project--list)


From: GNU bug Tracking System
Subject: bug#42332: closed (Function to add projects to project--list)
Date: Sat, 25 Jul 2020 00:20:01 +0000

Your message dated Sat, 25 Jul 2020 03:19:18 +0300
with message-id <cfb65a80-4bd9-8de8-d991-6e3a7593140d@yandex.ru>
and subject line Re: bug#42332: Function to add projects to project--list
has caused the debbugs.gnu.org bug report #42332,
regarding Function to add projects to project--list
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
42332: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42332
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Function to add projects to project--list Date: Sat, 11 Jul 2020 23:43:15 -0700
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#42332: Function to add projects to project--list Date: Sat, 25 Jul 2020 03:19:18 +0300 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
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.


--- End Message ---

reply via email to

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