I attached a patch. Let me know if I missed something or am approach the matter
in a wrong way.
To try my code I used the following predicate (mu-ignored-buffers is in the
first message of this ticket):
(defun mu-buffer-predicate (buffer)
"Check if BUFFER is NOT a member of `mu-ignored-buffers'."
(not (seq-contains-p mu-ignored-buffers
(buffer-name (cdr buffer))
#'string-match-p)))
And this setting:
(setq-default project-switch-to-buffer-conditions '(mu-buffer-predicate))
Note that I didn't bump the package-version on
`project-switch-to-buffer-conditions' because I don't know if it is required.