Variable: ps-printer-name

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

Value

nil

Documentation

The name of a local printer for printing PostScript files.

On Unix-like systems, a string value should be a name understood by lpr's -P option; a value of nil means use the value of printer-name instead.

On MS-DOS and MS-Windows systems, a string value is taken as the name of the printer device or port to which PostScript files are written, provided ps-lpr-command is "". By default it is the same as printer-name; typical non-default settings would be "LPT1" to "LPT3" for parallel printers, or
"COM1" to "COM4" or "AUX" for serial printers, or "\\\\hostname\\printer"
for a shared network printer. You can also set it to a name of a file, in which case the output gets appended to that file. (Note that ps-print package already has facilities for printing to a file, so you might as well use
them instead of changing the setting of this variable.) If you want to
silently discard the printed output, set this to "NUL".

Set to t, if the utility given by ps-lpr-command needs an empty printer name.

Any other value is treated as t, that is, an empty printer name.

See also ps-printer-name-option for documentation.

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

View in manual

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 nil
  "The name of a local printer for printing PostScript files.

On Unix-like systems, a string value should be a name understood by lpr's -P
option; a value of nil means use the value of `printer-name' instead.

On MS-DOS and MS-Windows systems, a string value is taken as the name of the
printer device or port to which PostScript files are written, provided
`ps-lpr-command' is \"\".  By default it is the same as `printer-name'; typical
non-default settings would be \"LPT1\" to \"LPT3\" for parallel printers, or
\"COM1\" to \"COM4\" or \"AUX\" for serial printers, or \"\\\\hostname\\printer\"
for a shared network printer.  You can also set it to a name of a file, in
which case the output gets appended to that file.  \(Note that `ps-print'
package already has facilities for printing to a file, so you might as well use
them instead of changing the setting of this variable.)  If you want to
silently discard the printed output, set this to \"NUL\".

Set to t, if the utility given by `ps-lpr-command' needs an empty printer name.

Any other value is treated as t, that is, an empty printer name.

See also `ps-printer-name-option' for documentation."
  :type '(choice :menu-tag "Printer Name"
		 :tag "Printer Name"
		 (const :tag "Same as printer-name" nil)
		 (const :tag "No Printer Name" t)
		 (file :tag "Print to file")
		 (string :tag "Pipe to ps-lpr-command"))
  :version "20"
  :group 'ps-print-printer)