If project PR satisfies `project-list-exclude', then nothing is done.
Save the result in `project-list-file' if the list of projects
has changed, and NO-WRITE is nil."
- (let ((root (project-root pr)))
- (unless (seq-some (lambda (r)
- (if (functionp r)
- (funcall r pr)
- (string-match-p r root)))
- project-list-exclude)
+ (interactive (list (project-current t)))
+ (let ((root (project-root pr))
+ (interact (called-interactively-p 'any)))
+ (if (seq-some (lambda (r)
+ (if (functionp r)
+ (funcall r pr)
+ (string-match-p r root)))
+ project-list-exclude)
+ (when interact
+ (message "Current project is blacklisted!"))
+ (when interact
+ (message "Current project remembered"))
(project--remember-dir root no-write))))
(defun project--remove-from-project-list (project-root report-message)