Function: preview-TeX-inline-sentinel
preview-TeX-inline-sentinel is a byte-compiled function defined in
preview.el.
Signature
(preview-TeX-inline-sentinel PROCESS NAME)
Documentation
Sentinel function for preview.
See TeX-sentinel-function and set-process-sentinel
for definition of PROCESS and NAME.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-TeX-inline-sentinel (process _name)
"Sentinel function for preview.
See `TeX-sentinel-function' and `set-process-sentinel'
for definition of PROCESS and NAME."
(if process (TeX-format-mode-line process))
(let ((status (process-status process)))
(if (memq status '(signal exit))
(delete-process process))
(cond
((with-current-buffer TeX-command-buffer
(prog1
preview-abort-flag
(setq preview-abort-flag nil))))
((eq status 'exit)
(save-excursion
(goto-char (point-max))
(forward-line -1)
(if (search-forward "abnormally with code 1" nil t)
(replace-match "as expected with code 1" t t)
(if (search-forward "finished" nil t)
(insert " with nothing to show"))))
(condition-case err
(preview-call-hook 'open)
(error (preview-log-error err "LaTeX" process)))
(preview-reraise-error process)))))