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.

Full log


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




This bug report was last modified 5 years and 23 days ago.

Previous Next


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