Subject: Re: bug#77566: [PATCH] Add option for automatically delete non-existent projects.

From: Juri Linkov <[email-masked]>
Date: Tue, 08 Apr 2025 09:20:22 +0300

>> Instead of desperately cleaning zombies that are popping up again and again,
>> I'd prefer an option with a list of directories that should be never added
>> to the project list.
>
> I think we have that in the recently added option project-list-exclude.

Ok, this works nicely:

(define-advice project-forget-projects-under (:after (dir &optional _recursive) remember)
  (add-to-list 'project-list-exclude dir))