Function: preview-dvi*-process-setup-1

preview-dvi*-process-setup-1 is a byte-compiled function defined in preview.el.

Signature

(preview-dvi*-process-setup-1 IMG-TYPE START SENTINEL)

Documentation

Setup process of a DVI converter to IMG-TYPE.

START is the function that actually starts the process with TeX-sentinel-function set to SENTINEL.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-dvi*-process-setup-1 (img-type start sentinel)
  "Setup process of a DVI converter to IMG-TYPE.
START is the function that actually starts the process with
`TeX-sentinel-function' set to SENTINEL."
  (setq preview-gs-command-line (append
                                 preview-gs-command-line
                                 (list (preview-gs-resolution
                                        (preview-hook-enquiry preview-scale)
                                        (car preview-resolution)
                                        (cdr preview-resolution)))))
  (if preview-parsed-pdfoutput
      (if (preview-supports-image-type preview-gs-image-type)
          (preview-pdf2dsc-process-setup)
        (error "preview-gs-image-type setting '%s unsupported by this Emacs"
               preview-gs-image-type))
    (unless (preview-supports-image-type img-type)
      (error "Image type setting '%s unsupported by this Emacs" img-type))
    (setq TeX-sentinel-function sentinel)
    (list (funcall start)
          (current-buffer)
          TeX-active-tempdir t
          img-type)))