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


Message #14 received at 76587 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 76587 <at> debbugs.gnu.org
Subject: Re: bug#76587: 31.0.50; [FR] project.el should have a way to
 exclude certain projects from being saved
Date: Thu, 27 Feb 2025 09:27:30 +0200
> I would like to have a user option like
> recentf-exclude which would prevent project--write-project-list from
> saving certain projects.  To that end, I propose the following patch,
> WDYT?

recentf-exclude supports a list of regexps and predicates:

  (defcustom recentf-exclude nil
    "List of regexps and predicates for filenames excluded from the recent list.
    ..."
    :type '(repeat (choice regexp function)))

Would it be possible also to check a predicate on the project list?

I need this to be able to remove the advice from my config:

  ;; Don't remember transient projects:
  (define-advice project-remember-project (:before-until (pr &rest _) skip)
    (eq (car pr) 'transient))




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.