diff options
| author | Andrew Innes | 1999-01-17 18:58:43 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-01-17 18:58:43 +0000 |
| commit | 8bc62130b3c39cee543a91cc6366c969ca8ac4ad (patch) | |
| tree | 70849c31c6aa8c1c0a5df8963f1b83949b564e2b | |
| parent | 52cf535f30ce1451cf6370af483f73a05fd5cfe9 (diff) | |
| download | emacs-8bc62130b3c39cee543a91cc6366c969ca8ac4ad.tar.gz emacs-8bc62130b3c39cee543a91cc6366c969ca8ac4ad.zip | |
(printer-name): Update docstring about usage on MS-DOS
and MS-Windows.
(lpr-command) [ms-dos, windows-nt]: Initialize to empty string on
DOS and Windows platforms, to indicate direct printing. Update
the docstring accordingly.
| -rw-r--r-- | lisp/lpr.el | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/lisp/lpr.el b/lisp/lpr.el index 301a50af9a8..dbc91790f5f 100644 --- a/lisp/lpr.el +++ b/lisp/lpr.el | |||
| @@ -41,15 +41,15 @@ | |||
| 41 | \(Note that PostScript files are sent to `ps-printer-name', which see.\) | 41 | \(Note that PostScript files are sent to `ps-printer-name', which see.\) |
| 42 | 42 | ||
| 43 | On Unix-like systems, a string value should be a name understood by | 43 | On Unix-like systems, a string value should be a name understood by |
| 44 | lpr's -P option. | 44 | lpr's -P option; otherwise the value should be nil. |
| 45 | 45 | ||
| 46 | On MS-DOS and MS-Windows systems, it is the name of a printer device or | 46 | On MS-DOS and MS-Windows systems, a string value is taken as the name of |
| 47 | port. Typical non-default settings would be \"LPT1\" to \"LPT3\" for | 47 | a printer device or port, provided `lpr-command' is set to \"\". |
| 48 | parallel printers, or \"COM1\" to \"COM4\" or \"AUX\" for serial | 48 | Typical non-default settings would be \"LPT1\" to \"LPT3\" for parallel |
| 49 | printers, or \"//hostname/printer\" for a shared network printer. You | 49 | printers, or \"COM1\" to \"COM4\" or \"AUX\" for serial printers, or |
| 50 | can also set it to a name of a file, in which case the output gets | 50 | \"//hostname/printer\" for a shared network printer. You can also set |
| 51 | appended to that file. If you want to discard the printed output, set | 51 | it to the name of a file, in which case the output gets appended to that |
| 52 | this to \"NUL\"." | 52 | file. If you want to discard the printed output, set this to \"NUL\"." |
| 53 | :type '(choice ; could use string but then we lose completion for files. | 53 | :type '(choice ; could use string but then we lose completion for files. |
| 54 | (file :tag "Name") | 54 | (file :tag "Name") |
| 55 | (const :tag "Default" nil)) | 55 | (const :tag "Default" nil)) |
| @@ -74,9 +74,22 @@ this variable should be nil." | |||
| 74 | 74 | ||
| 75 | ;;;###autoload | 75 | ;;;###autoload |
| 76 | (defcustom lpr-command | 76 | (defcustom lpr-command |
| 77 | (if (memq system-type '(usg-unix-v dgux hpux irix)) | 77 | (cond |
| 78 | "lp" "lpr") | 78 | ((memq system-type '(ms-dos windows-nt)) |
| 79 | "*Name of program for printing a file." | 79 | "") |
| 80 | ((memq system-type '(usg-unix-v dgux hpux irix)) | ||
| 81 | "lp") | ||
| 82 | (t | ||
| 83 | "lpr")) | ||
| 84 | "*Name of program for printing a file. | ||
| 85 | |||
| 86 | On MS-DOS and MS-Windows systems, if the value is an empty string then | ||
| 87 | Emacs will write directly to the printer port named by `printer-name'. | ||
| 88 | The programs `print' and `nprint' (the standard print programs on | ||
| 89 | Windows NT and Novell Netware respectively) are handled specially, using | ||
| 90 | `printer-name' as the destination for output; any other program is | ||
| 91 | treated like `lpr' except that an explicit filename is given as the last | ||
| 92 | argument." | ||
| 80 | :type 'string | 93 | :type 'string |
| 81 | :group 'lpr) | 94 | :group 'lpr) |
| 82 | 95 | ||