From: Philip Kaludercic <philipk@posteo.net>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 50297@debbugs.gnu.org
Subject: bug#50297: 28.0.50; Aggregate project functions for project.el
Date: Wed, 22 Sep 2021 07:15:00 +0000 [thread overview]
Message-ID: <877df9qdxn.fsf@posteo.net> (raw)
In-Reply-To: <c3e54a2b-3ffc-026b-68a3-884a4bb39174@yandex.ru> (Dmitry Gutov's message of "Wed, 22 Sep 2021 03:31:42 +0300")
Dmitry Gutov <dgutov@yandex.ru> writes:
> 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
It is also my impression that the tabulated list doesn't make too much
sense (for now).
> And whatever ambiguities about recursive search can be solved through
> better descriptions in docstrings.
Ok, I will update the patches and refine the documentation. My plan
would be to be non-recursive by default, and recurse if a prefix
argument is given.
> 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.
The question is does it make sense to not always forget zombies? This
depends on the real-world performance. If it is a noticeable burden (at
least on some systems), users might prefer adding the function to
kill-emacs-hook instead of a project-after-read-list-hook.
--
Philip Kaludercic
next prev parent reply other threads:[~2021-09-22 7:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-31 12:47 bug#50297: 28.0.50; Aggregate project functions for project.el Philip Kaludercic
2021-09-01 1:07 ` Dmitry Gutov
2021-09-02 13:30 ` Philip Kaludercic
2021-09-02 14:45 ` Philip Kaludercic
2021-09-02 15:56 ` Juri Linkov
2021-09-03 1:02 ` Dmitry Gutov
2021-09-03 0:55 ` Dmitry Gutov
2021-09-22 0:31 ` Dmitry Gutov
2021-09-22 7:15 ` Philip Kaludercic [this message]
2021-09-22 12:13 ` Dmitry Gutov
2021-09-22 16:00 ` Juri Linkov
2021-09-22 16:44 ` Philip Kaludercic
2021-09-22 17:34 ` Dmitry Gutov
2021-09-22 18:06 ` Philip Kaludercic
2021-09-22 18:25 ` Dmitry Gutov
2021-09-22 18:53 ` Philip Kaludercic
2021-09-22 18:55 ` Philip Kaludercic
2021-09-23 2:44 ` Dmitry Gutov
2021-09-23 10:46 ` Philip Kaludercic
2021-09-23 11:56 ` Dmitry Gutov
2021-09-23 12:08 ` Philip Kaludercic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877df9qdxn.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=50297@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.