Function: preview-start-process

preview-start-process is a byte-compiled function defined in preview.el.

Signature

(preview-start-process NAME COMMAND)

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-start-process (name command)
  (setq TeX-active-tempdir (buffer-local-value 'TeX-active-tempdir
                                               TeX-command-buffer))
  (goto-char (point-max))
  (insert-before-markers "Running `" name "' with ``" command "''\n")
  (setq mode-name name)
  (if TeX-process-asynchronous
      (let ((process (start-process name (current-buffer) TeX-shell
                                    TeX-shell-command-option
                                    command)))
        (if TeX-after-start-process-function
            (funcall TeX-after-start-process-function process))
        (TeX-command-mode-line process)
        (set-process-filter process #'TeX-command-filter)
        (set-process-sentinel process #'TeX-command-sentinel)
        (set-marker (process-mark process) (point-max))
        (push process compilation-in-progress)
        (sit-for 0)
        process)
    (setq mode-line-process ": run")
    (force-mode-line-update)
    (call-process TeX-shell nil (current-buffer) nil
                  TeX-shell-command-option
                  command)))