Function: project-remember-project
project-remember-project is an autoloaded and byte-compiled function
defined in project.el.gz.
Signature
(project-remember-project PR &optional NO-WRITE)
Documentation
Add project PR to the front of the project list.
Save the result in project-list-file if the list of projects
has changed, and NO-WRITE is nil.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
;;;###autoload
(defun project-remember-project (pr &optional no-write)
"Add project PR to the front of the project list.
Save the result in `project-list-file' if the list of projects
has changed, and NO-WRITE is nil."
(project--ensure-read-project-list)
(let ((dir (project-root pr)))
(unless (equal (caar project--list) dir)
(dolist (ent project--list)
(when (equal dir (car ent))
(setq project--list (delq ent project--list))))
(push (list dir) project--list)
(unless no-write
(project--write-project-list)))))