Function: TeX-synchronous-sentinel
TeX-synchronous-sentinel is a byte-compiled function defined in
tex.el.
Signature
(TeX-synchronous-sentinel NAME FILE RESULT)
Documentation
Process TeX command output buffer after the process dies.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
;;; Command Sentinels
(defun TeX-synchronous-sentinel (name file result)
"Process TeX command output buffer after the process dies."
(let ((buffer (TeX-process-buffer (file-name-nondirectory file))))
(with-current-buffer buffer
;; Append post-mortem information to the buffer
(goto-char (point-max))
(insert "\n" mode-name (if (and result (zerop result))
" finished" " exited") " at "
(substring (current-time-string) 0 -5))
(setq mode-line-process ": exit")
;; Do command specific actions.
(setq TeX-command-next TeX-command-Show)
(goto-char (point-min))
(apply TeX-sentinel-function nil name nil)
;; Force mode line redisplay soon
(force-mode-line-update))))