Function: vc-compilation-mode
vc-compilation-mode is a byte-compiled function defined in
vc-dispatcher.el.gz.
Signature
(vc-compilation-mode BACKEND)
Documentation
Compilation mode for buffers with output from VC commands.
Sets compilation-error-regexp-alist in accordance with the VC backend.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dispatcher.el.gz
(defun vc-compilation-mode (backend)
"Compilation mode for buffers with output from VC commands.
Sets `compilation-error-regexp-alist' in accordance with the VC backend."
(delay-mode-hooks
(let* ((error-regexp-alist
(vc-make-backend-sym backend 'error-regexp-alist))
(error-regexp-alist (and (boundp error-regexp-alist)
(symbol-value error-regexp-alist))))
(let ((compilation-error-regexp-alist error-regexp-alist))
(compilation-mode)
(setq mode-name "VC-Compilation"
major-mode 'vc-compilation-mode))
(setq-local compilation-error-regexp-alist
error-regexp-alist)))
(run-mode-hooks 'vc-compilation-mode-hook))