Function: vc-compilation-mode
vc-compilation-mode is a byte-compiled function defined in
vc-dispatcher.el.gz.
Signature
(vc-compilation-mode BACKEND)
Documentation
Setup compilation-mode with the appropriate compilation-error-regexp-alist.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dispatcher.el.gz
(defun vc-compilation-mode (backend)
"Setup `compilation-mode' with the appropriate `compilation-error-regexp-alist'."
(require 'compile)
(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-local compilation-error-regexp-alist
error-regexp-alist)))