Function: TeX-command-sequence-sentinel

TeX-command-sequence-sentinel is a byte-compiled function defined in tex.el.

Signature

(TeX-command-sequence-sentinel PROCESS STRING)

Documentation

Call the appropriate sentinel for the current PROCESS.

Pass two arguments PROCESS and STRING to the sentinel.

If there are no errors, call back TeX-command-sequence using TeX-command-sequence-command as command argument, unless this variable is nil.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-command-sequence-sentinel (process string)
  "Call the appropriate sentinel for the current PROCESS.
Pass two arguments PROCESS and STRING to the sentinel.

If there are no errors, call back `TeX-command-sequence' using
`TeX-command-sequence-command' as command argument, unless this
variable is nil."
  (with-current-buffer (process-buffer process)
    (funcall TeX-command-sequence-sentinel process string)
    (if (string-match "\\(finished\\|exited\\)" string)
        (with-current-buffer TeX-command-buffer
          (unless
              (or
               (TeX-error-report-has-errors-p)
               (null TeX-command-sequence-command))
            (TeX-command-sequence TeX-command-sequence-command nil
                                  TeX-command-sequence-file-function))))))