Function: doc-view-sentinel
doc-view-sentinel is a byte-compiled function defined in
doc-view.el.gz.
Signature
(doc-view-sentinel PROC EVENT)
Documentation
Generic sentinel for doc-view conversion processes.
Source Code
;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defun doc-view-sentinel (proc event)
"Generic sentinel for doc-view conversion processes."
(if (not (string-match "finished" event))
(message "DocView: process %s changed status to %s."
(process-name proc)
(if (string-match "\\(.+\\)\n?\\'" event)
(match-string 1 event)
event))
(when (buffer-live-p (process-get proc 'buffer))
(with-current-buffer (process-get proc 'buffer)
(setq doc-view--current-converter-processes
(delq proc doc-view--current-converter-processes))
(setq mode-line-process
(if doc-view--current-converter-processes
(format ":%s" (car doc-view--current-converter-processes))))
(funcall (process-get proc 'callback))))))