Variable: ps-printer-name-option

ps-printer-name-option is a customizable variable defined in ps-print.el.gz.

Value

"-P"

Documentation

Option for ps-printer-name variable (see it).

On Unix-like systems, if lpr is in use, this should be the string
"-P"; if lp is in use, this should be the string "-d".

On MS-DOS and MS-Windows systems, if print is in use, this should be the string "/D:".

For any other printing utility, see its documentation.

Set this to "" or nil, if the utility given by ps-lpr-command needs an empty printer name option--that is, pass the printer name with no special option preceding it.

This variable is used only when ps-printer-name is a non-empty string.

This variable was added, or its default value changed, in Emacs 21.1.

Probably introduced at or before Emacs version 20.1.

Source Code

;; Defined in /usr/src/emacs/lisp/ps-print.el.gz
(defcustom ps-printer-name-option
  (cond (lpr-windows-system "/D:")
	(t lpr-printer-switch))
  "Option for `ps-printer-name' variable (see it).

On Unix-like systems, if `lpr' is in use, this should be the string
\"-P\"; if `lp' is in use, this should be the string \"-d\".

On MS-DOS and MS-Windows systems, if `print' is in use, this should be
the string \"/D:\".

For any other printing utility, see its documentation.

Set this to \"\" or nil, if the utility given by `ps-lpr-command'
needs an empty printer name option--that is, pass the printer name
with no special option preceding it.

This variable is used only when `ps-printer-name' is a non-empty string."
  :type '(choice :menu-tag "Printer Name Option"
		 :tag "Printer Name Option"
		 (const :tag "None" nil)
		 (string :tag "Option"))
  :version "21.1"
  :group 'ps-print-printer)