Variable: project-prune-zombie-projects

project-prune-zombie-projects is a customizable variable defined in project.el.gz.

Value

((prompt . project-prune-zombies-default))

Documentation

Remove automatically from project list the projects that were removed.

Each element of this alist must be in the form:
 (WHEN . PREDICATE)

where WHEN specifies where the deletion will be performed, the value can be:

 list-first-read - delete on the first reading of the list.
 list-write - delete after saving project list to project-list-file.
 prompt - delete before every prompting.
 interactively - delete only when project-forget-zombie-projects
                   is called interactively.

PREDICATE must be a function which takes one argument, and should return non-nil if the project must be removed.

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defcustom project-prune-zombie-projects
  '((prompt . project-prune-zombies-default))
  "Remove automatically from project list the projects that were removed.
Each element of this alist must be in the form:
 (WHEN . PREDICATE)

where WHEN specifies where the deletion will be performed,
the value can be:

 `list-first-read' - delete on the first reading of the list.
 `list-write' - delete after saving project list to `project-list-file'.
 `prompt' - delete before every prompting.
 `interactively' - delete only when `project-forget-zombie-projects'
                   is called interactively.

PREDICATE must be a function which takes one argument, and should return
non-nil if the project must be removed."
  :type 'alist
  :options '((list-first-read function)
             (list-write      function)
             (prompt          function)
             (interactively   function))
  :version "31.1"
  :group 'project)