GNU bug report logs - #42332
Function to add projects to project--list

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Sun, 12 Jul 2020 06:44:01 UTC

Severity: normal

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42332 in the body.
You can then email your comments to 42332 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to juri <at> linkov.net, dgutov <at> yandex.ru, bug-gnu-emacs <at> gnu.org:
bug#42332; Package emacs. (Sun, 12 Jul 2020 06:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sean Whitton <spwhitton <at> spwhitton.name>:
New bug report received and forwarded. Copy sent to juri <at> linkov.net, dgutov <at> yandex.ru, bug-gnu-emacs <at> gnu.org. (Sun, 12 Jul 2020 06:44:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: bug-gnu-emacs <at> gnu.org
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




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sat, 25 Jul 2020 00:20:01 GMT) Full text and rfc822 format available.

Notification sent to Sean Whitton <spwhitton <at> spwhitton.name>:
bug acknowledged by developer. (Sat, 25 Jul 2020 00:20:02 GMT) Full text and rfc822 format available.

Message #10 received at 42332-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Sean Whitton <spwhitton <at> spwhitton.name>, 42332-done <at> debbugs.gnu.org
Cc: juri <at> linkov.net
Subject: Re: bug#42332: Function to add projects to project--list
Date: Sat, 25 Jul 2020 03:19:18 +0300
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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 22 Aug 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.