Function: vhdl-compile-init
vhdl-compile-init is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-compile-init)
Documentation
Initialize for compilation.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Compilation
(defun vhdl-compile-init ()
"Initialize for compilation."
(when (and (not vhdl-emacs-22)
(or (null compilation-error-regexp-alist)
(not (assoc (car (nth 11 (car vhdl-compiler-alist)))
compilation-error-regexp-alist))))
;; `compilation-error-regexp-alist'
(let ((commands-alist vhdl-compiler-alist)
regexp-alist sublist)
(while commands-alist
(setq sublist (nth 11 (car commands-alist)))
(unless (or (equal "" (car sublist))
(assoc (car sublist) regexp-alist))
(push (list (nth 0 sublist)
(if (and (featurep 'xemacs) (not (nth 1 sublist)))
9
(nth 1 sublist))
(nth 2 sublist) (nth 3 sublist))
regexp-alist))
(setq commands-alist (cdr commands-alist)))
(setq compilation-error-regexp-alist
(append compilation-error-regexp-alist (nreverse regexp-alist))))
;; `compilation-file-regexp-alist'
(let ((commands-alist vhdl-compiler-alist)
regexp-alist sublist)
;; matches vhdl-mode file name output
(setq regexp-alist '(("^Compiling \"\\(.+\\)\"" 1)))
(while commands-alist
(setq sublist (nth 12 (car commands-alist)))
(unless (or (equal "" (car sublist))
(assoc (car sublist) regexp-alist))
(push sublist regexp-alist))
(setq commands-alist (cdr commands-alist)))
(setq compilation-file-regexp-alist
(append compilation-file-regexp-alist (nreverse regexp-alist))))))