GNU bug report logs - #76587
31.0.50; [FR] project.el should have a way to exclude certain projects from being saved

Previous Next

Package: emacs;

Reported by: Visuwesh <visuweshm <at> gmail.com>

Date: Wed, 26 Feb 2025 14:01:02 UTC

Severity: wishlist

Found in version 31.0.50

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 76587 <at> debbugs.gnu.org
Subject: bug#76587: 31.0.50; [FR] project.el should have a way to exclude certain projects from being saved
Date: Thu, 27 Feb 2025 19:35:34 +0200
>     (defcustom project-list-exclude nil
>       "List of regexps and predicates for project root and objects to exclude."
>       :type '(repeat (choice regexp function))
>       :version "31.1"
>       :group 'project)
>
> as we cannot remove your advice if we don't pass the project object to
> the predicate.
>
> BTW, would it be too late to check this user option in
> project--write-project-list, or should we check this in
> project-remember-project as in your advice?  IIUC, the former would more
> closely resemble recentf's behaviour.

Probably a better place to check this user option would be in
project-remember-project since project--remember-dir is called
only from project-remember-project and project-switch-project.

OTOH, since project--remember-dir is an internal function
we could add a new argument 'project' to it.




This bug report was last modified 136 days ago.

Previous Next


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