Function: projectile-use-comint-mode-p

projectile-use-comint-mode-p is a byte-compiled function defined in projectile.el.

Signature

(projectile-use-comint-mode-p PHASE)

Documentation

Return non-nil when PHASE's output buffer should be interactive.

PHASE is a lifecycle phase symbol such as compile, or task for the named tasks - which run through the same machinery and are covered by the same option (see issue #2156). Reads projectile-use-comint-mode, falling back to the obsolete per-phase option it replaced for a configuration that still sets one; the tasks never had one of those.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-use-comint-mode-p (phase)
  "Return non-nil when PHASE's output buffer should be interactive.
PHASE is a lifecycle phase symbol such as `compile', or `task' for the
named tasks - which run through the same machinery and are covered by the
same option (see issue #2156).  Reads `projectile-use-comint-mode',
falling back to the obsolete per-phase option it replaced for a
configuration that still sets one; the tasks never had one of those."
  ;; Normalized to a boolean: `memq' would otherwise hand the caller the
  ;; tail of the option's list, which then travels all the way into
  ;; `compile' as its COMINT argument.
  (and (or (eq projectile-use-comint-mode t)
           (memq phase projectile-use-comint-mode)
           (when-let* ((var (alist-get phase projectile--obsolete-comint-vars)))
             (symbol-value var)))
       t))