Function: projectile-compilation-buffer-name
projectile-compilation-buffer-name is a byte-compiled function defined
in projectile.el.
Signature
(projectile-compilation-buffer-name COMPILATION-MODE)
Documentation
Meant to be used for compilation-buffer-name-function.
Argument COMPILATION-MODE is the name of the major mode used for the compilation buffer.
The name is qualified by the project and/or the lifecycle command type,
according to projectile-compilation-buffer-scope(var)/projectile-compilation-buffer-scope(fun).
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-compilation-buffer-name (compilation-mode)
"Meant to be used for `compilation-buffer-name-function'.
Argument COMPILATION-MODE is the name of the major mode used for the
compilation buffer.
The name is qualified by the project and/or the lifecycle command type,
according to `projectile-compilation-buffer-scope'."
(let* ((scope (projectile-compilation-buffer-scope))
(qualifiers
(delq nil
(list (and (memq 'project scope)
(projectile-project-p)
(projectile-project-name))
(and (memq 'command scope)
projectile--compilation-command-type
(symbol-name projectile--compilation-command-type))))))
(concat "*" (downcase compilation-mode) "*"
(if qualifiers
(concat "<" (string-join qualifiers ":") ">")
""))))