Function: pr-ps-buffer-preview
pr-ps-buffer-preview is an autoloaded, interactive and byte-compiled
function defined in printing.el.gz.
Signature
(pr-ps-buffer-preview N-UP &optional FILENAME)
Documentation
Preview buffer using ghostview.
Interactively, the command prompts for N-UP printing number and, when you use a
prefix argument (C-u (universal-argument)), the command prompts the user for a file name, and saves
the PostScript image in that file instead of saving it in a temporary file.
Noninteractively, if N-UP is nil, prompts for N-UP printing number. The argument FILENAME is treated as follows: if it's nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/printing.el.gz
;;;###autoload
(defun pr-ps-buffer-preview (n-up &optional filename)
"Preview buffer using ghostview.
Interactively, the command prompts for N-UP printing number and, when you use a
prefix argument (\\[universal-argument]), the command prompts the user for a file name, and saves
the PostScript image in that file instead of saving it in a temporary file.
Noninteractively, if N-UP is nil, prompts for N-UP printing number. The
argument FILENAME is treated as follows: if it's nil, save the image in a
temporary file. If FILENAME is a string, save the PostScript image in a file
with that name. If FILENAME is t, prompts for a file name."
(interactive (pr-interactive-n-up-file (pr-prompt "PS preview")))
(if (pr-auto-mode-p)
(pr-ps-mode-preview n-up filename)
(pr-ps-preview (pr-region-active-symbol) n-up filename
(pr-region-active-string "PS preview"))))