compilation-buffer-name-function

compilation-buffer-name-function is a variable defined in `compile.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
Function to compute the name of a compilation buffer.
The function receives one argument, the name of the major mode of the
compilation buffer. It should return a string.
If nil, compute the name with `(concat "*" (downcase major-mode) "*")'.