Function: pr-despool-print

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

Signature

(pr-despool-print &optional FILENAME)

Documentation

Send the spooled PostScript to the printer.

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 sending it to the printer.

Noninteractively, the argument FILENAME is treated as follows: if it is nil, send the image to the printer. 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-print (&optional filename)
  "Send the spooled PostScript to the printer.

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 sending it to the printer.

Noninteractively, the argument FILENAME is treated as follows: if it is nil,
send the image to the printer.  If FILENAME is a string, save the PostScript
image in a file with that name."
  (interactive (list (ps-print-preprint current-prefix-arg)))
  (with-file-modes pr-file-modes
    (let ((ps-lpr-command         (pr-command pr-ps-command))
	  (ps-lpr-switches        pr-ps-switches)
	  (ps-printer-name-option pr-ps-printer-switch)
	  (ps-printer-name        pr-ps-printer))
      (ps-despool filename))))