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

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

bug#50297: 28.0.50; Aggregate project functions for project.el


From: Dmitry Gutov
Subject: bug#50297: 28.0.50; Aggregate project functions for project.el
Date: Wed, 22 Sep 2021 03:31:42 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

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.





reply via email to

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