Function: project--remove-from-project-list

project--remove-from-project-list is a byte-compiled function defined in project.el.gz.

Signature

(project--remove-from-project-list PROJECT-ROOT REPORT-MESSAGE)

Documentation

Remove directory PROJECT-ROOT of a missing project from the project list.

If the directory was in the list before the removal, save the result in project-list-file. Announce the project's removal from the list using REPORT-MESSAGE, which is a format string passed to message as its first argument.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defun project--remove-from-project-list (project-root report-message)
  "Remove directory PROJECT-ROOT of a missing project from the project list.
If the directory was in the list before the removal, save the
result in `project-list-file'.  Announce the project's removal
from the list using REPORT-MESSAGE, which is a format string
passed to `message' as its first argument."
  (project--ensure-read-project-list)
  (when-let ((ent (assoc project-root project--list)))
    (setq project--list (delq ent project--list))
    (message report-message project-root)
    (project--write-project-list)))