Function: projectile-compilation-buffer-scope

projectile-compilation-buffer-scope is a byte-compiled function defined in projectile.el.

Signature

(projectile-compilation-buffer-scope)

Documentation

Return the aspects a compilation buffer's name is qualified by.

A list of project and/or command. Normalizes the t shorthand of projectile-compilation-buffer-scope(var)/projectile-compilation-buffer-scope(fun) and folds in the two obsolete booleans it replaced, for a configuration that still sets one.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-compilation-buffer-scope ()
  "Return the aspects a compilation buffer's name is qualified by.
A list of `project' and/or `command'.  Normalizes the t shorthand of
`projectile-compilation-buffer-scope' and folds in the two obsolete
booleans it replaced, for a configuration that still sets one."
  (let ((scope (if (eq projectile-compilation-buffer-scope t)
                   '(project command)
                 projectile-compilation-buffer-scope)))
    (with-no-warnings
      (append (unless (memq 'project scope)
                (and projectile-per-project-compilation-buffer '(project)))
              (unless (memq 'command scope)
                (and projectile-per-command-compilation-buffer '(command)))
              scope))))