-(defvar lpr-switches nil
- "*List of strings to pass as extra switch args to `lpr' when it is invoked.")
+(defcustom printer-name
+ (if (memq system-type '(ms-dos windows-nt)) "PRN")
+ "*The name of a local printer to which data is sent for printing.
+\(Note that PostScript files are sent to `ps-printer-name', which see.\)
+
+On Unix-like systems, a string value should be a name understood by
+lpr's -P option.
+
+On MS-DOS and MS-Windows systems, it is the name of a printer device or
+port. 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. If you want to discard the printed output, set
+this to \"NUL\"."
+ :type 'file ; could use string but then we lose completion for files.
+ :group 'lpr)