Function: pr-despool-preview

pr-despool-preview is an autoloaded, interactive and byte-compiled function defined in printing.el.gz.

Signature

(pr-despool-preview &optional FILENAME)

Documentation

Preview spooled PostScript.

Interactively, when you use a prefix argument (C-u (universal-argument)), the command prompts the user for a file name, and saves the spooled PostScript image in that file instead of saving it in a temporary file.

Noninteractively, the argument FILENAME is treated as follows: if it is nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/printing.el.gz
;;;###autoload
(defun pr-despool-preview (&optional filename)
  "Preview spooled PostScript.

Interactively, when you use a prefix argument (\\[universal-argument]), the command prompts the
user for a file name, and saves the spooled PostScript image in that file
instead of saving it in a temporary file.

Noninteractively, the argument FILENAME is treated as follows: if it is nil,
save the image in a temporary file.  If FILENAME is a string, save the
PostScript image in a file with that name."
  (interactive (list (ps-print-preprint current-prefix-arg)))
  (let ((file (pr-ps-file filename)))
    (when (stringp file)
      (pr-despool-print file)
      (pr-ps-file-preview file))))