Variable: ps-spool-config
ps-spool-config is a customizable variable defined in ps-print.el.gz.
Value
lpr-switches
Documentation
Specify who is responsible for setting duplex and page size.
Valid values are:
lpr-switches duplex and page size are configured by ps-lpr-switches.
Don't forget to set ps-lpr-switches to select duplex
printing for your printer.
setpagedevice duplex and page size are configured by ps-print using the
setpagedevice PostScript operator.
nil duplex and page size are configured by ps-print *not* using
the setpagedevice PostScript operator.
Any other value is treated as nil.
WARNING: The setpagedevice PostScript operator affects ghostview utility when
viewing file generated using landscape. Also on some printers,
setpagedevice affects zebra stripes; on other printers, setpagedevice
affects the left margin.
Besides all that, if your printer does not have the paper size
specified by setpagedevice, your printing will be aborted.
So, if you need to use setpagedevice, set ps-spool-config to
setpagedevice, generate a test file and send it to your printer; if
the printed file isn't OK, set ps-spool-config to nil.
This variable was added, or its default value changed, in Emacs 20.
Probably introduced at or before Emacs version 20.1.
Source Code
;; Defined in /usr/src/emacs/lisp/ps-print.el.gz
(defcustom ps-spool-config
(if lpr-windows-system
nil
'lpr-switches)
"Specify who is responsible for setting duplex and page size.
Valid values are:
`lpr-switches' duplex and page size are configured by `ps-lpr-switches'.
Don't forget to set `ps-lpr-switches' to select duplex
printing for your printer.
`setpagedevice' duplex and page size are configured by ps-print using the
setpagedevice PostScript operator.
nil duplex and page size are configured by ps-print *not* using
the setpagedevice PostScript operator.
Any other value is treated as nil.
WARNING: The setpagedevice PostScript operator affects ghostview utility when
viewing file generated using landscape. Also on some printers,
setpagedevice affects zebra stripes; on other printers, setpagedevice
affects the left margin.
Besides all that, if your printer does not have the paper size
specified by setpagedevice, your printing will be aborted.
So, if you need to use setpagedevice, set `ps-spool-config' to
`setpagedevice', generate a test file and send it to your printer; if
the printed file isn't OK, set `ps-spool-config' to nil."
:type '(choice :menu-tag "Spool Config"
:tag "Spool Config"
(const lpr-switches) (const setpagedevice)
(const :tag "nil" nil))
:version "20"
:group 'ps-print-headers)