GNU bug report logs -
#50297
28.0.50; Aggregate project functions for project.el
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Tue, 31 Aug 2021 12:49:01 UTC
Severity: wishlist
Found in version 28.0.50
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 50297 <at> debbugs.gnu.org (full text, mbox):
On 31.08.2021 15:47, Philip Kaludercic wrote:
> The following patch introduces a few functions for aggregate project
> maintenance:
>
> - project-find-projects-under
> Select a directory with projects to index all at once.
> - project-remove-zombie-projects
> Check if all known projects still exist and remove those
> that don't anymore
> - project-remove-projects-under
> Remove all projects in a directory (inverse of
> project-find-projects-under).
>
> Especially the last two are useful to maintain a clean project list
> without having to manually remove every project one by one.
OK, so I have done the rename: we now have project-forget-project.
While I'm not necessarily a fan of the tabulated list approach, the
above list looks sensible. Let's just name them to fit the current
scheme better:
project-remember-projects-under
project-forget-projects-under
project-forget-zombie-projects
And whatever ambiguities about recursive search can be solved through
better descriptions in docstrings.
We could also add a hook like project-after-read-list-hook, which people
would be able to use for cleanup, e.g. adding
project-forget-zombie-projects to it. Not sure whether to add it there
by default, though.
This bug report was last modified 3 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.