Function: TeX-run-compile
TeX-run-compile is a byte-compiled function defined in tex.el.
Signature
(TeX-run-compile NAME COMMAND FILE)
Documentation
Ignore first and third argument, start compile with second argument.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-run-compile (_name command _file)
"Ignore first and third argument, start compile with second argument."
(let ((default-directory (TeX-master-directory)))
(setq TeX-command-buffer (compile command)))
;; Make `compilation-mode' recognize file names with spaces.
;; (bug#36483)
;; FIXME: This is just an ad-hoc workaround and it's better to fix
;; the regular expression in compile.el properly, if possible. But
;; there was no response to such request in emacs-devel@gnu.org.
(require 'compile)
(with-current-buffer TeX-command-buffer
(make-local-variable 'compilation-error-regexp-alist)
;; Add slightly modified entry of the one associated with `comma'
;; in `compilation-error-regexp-alist-alist' to pick up file names
;; with spaces.
(add-to-list 'compilation-error-regexp-alist
'("^\"\\([^,\"\n\t]+\\)\", line \\([0-9]+\\)\
\\(?:[(. pos]+\\([0-9]+\\))?\\)?[:.,; (-]\\( warning:\\|[-0-9 ]*(W)\\)?" 1 2 3 (4))
t)))