Function: compilation--default-buffer-name

compilation--default-buffer-name is an autoloaded and byte-compiled function defined in compile.el.gz.

Signature

(compilation--default-buffer-name NAME-OF-MODE)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
;;;###autoload
(defun compilation--default-buffer-name (name-of-mode)
  (cond ((or (eq major-mode (intern-soft name-of-mode))
             (eq major-mode (intern-soft (concat name-of-mode "-mode"))))
	 (buffer-name))
	(t
	 (concat "*" (downcase name-of-mode) "*"))))