Function: TeX-TeX-sentinel
TeX-TeX-sentinel is a byte-compiled function defined in tex.el.
Signature
(TeX-TeX-sentinel PROCESS NAME)
Documentation
Cleanup TeX output buffer after running TeX.
Parse the output buffer to collect errors and warnings if the
variable TeX-parse-all-errors(var)/TeX-parse-all-errors(fun) is non-nil.
Open the error overview if
TeX-error-overview-open-after-TeX-run is non-nil and there are
errors or warnings to show.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-TeX-sentinel (process name)
"Cleanup TeX output buffer after running TeX.
Parse the output buffer to collect errors and warnings if the
variable `TeX-parse-all-errors' is non-nil.
Open the error overview if
`TeX-error-overview-open-after-TeX-run' is non-nil and there are
errors or warnings to show."
(if (TeX-TeX-sentinel-check process name)
(progn
(if TeX-parse-all-errors
(TeX-parse-all-errors))
(if (and (with-current-buffer TeX-command-buffer
TeX-error-overview-open-after-TeX-run)
(TeX-error-overview-make-entries
(TeX-master-directory) (TeX-active-buffer)))
(TeX-error-overview)))
(message (concat name ": formatted " (TeX-current-pages)))
(let (dvi2pdf)
(if (with-current-buffer TeX-command-buffer
(and TeX-PDF-mode (setq dvi2pdf (TeX-PDF-from-DVI))))
(setq TeX-command-next dvi2pdf)
(setq TeX-command-next TeX-command-Show)))))