aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-15 05:43:41 +0000
committerRichard M. Stallman1998-05-15 05:43:41 +0000
commitfeb6540308100e67431ba6e2621ee01692f7e45d (patch)
tree3dc42f713d292128cb382c74924278c00207f5f5
parent7cd3279a33e9cf5919b5ea9919606b2c39d20dfb (diff)
downloademacs-feb6540308100e67431ba6e2621ee01692f7e45d.tar.gz
emacs-feb6540308100e67431ba6e2621ee01692f7e45d.zip
(dos-ps-printer, dos-printer, msdos-shells):
Defcustoms replaced with defvars. (dos-fns): defgroup deleted.
-rw-r--r--lisp/dos-fns.el44
1 files changed, 6 insertions, 38 deletions
diff --git a/lisp/dos-fns.el b/lisp/dos-fns.el
index 4293ecbc939..f2bfe44ab21 100644
--- a/lisp/dos-fns.el
+++ b/lisp/dos-fns.el
@@ -28,10 +28,6 @@
28 28
29;;; Code: 29;;; Code:
30 30
31(defgroup dos-fns nil
32 "MS-Dos specific functions."
33 :group 'environment)
34
35;; This overrides a trivial definition in files.el. 31;; This overrides a trivial definition in files.el.
36(defun convert-standard-filename (filename) 32(defun convert-standard-filename (filename)
37 "Convert a standard file's name to something suitable for the current OS. 33 "Convert a standard file's name to something suitable for the current OS.
@@ -82,10 +78,8 @@ with a definition that really does change some file names."
82 (aset string (1- (length string)) lastchar)) 78 (aset string (1- (length string)) lastchar))
83 (concat dir string)))) 79 (concat dir string))))
84 80
85(defcustom msdos-shells '("command.com" "4dos.com" "ndos.com") 81;; See dos-vars.el for defcustom.
86 "*List of shells that use `/c' instead of `-c' and a backslashed command." 82(defvar msdos-shells)
87 :type '(repeat string)
88 :group 'dos-fns)
89 83
90(defvar register-name-alist 84(defvar register-name-alist
91 '((ax . 0) (bx . 1) (cx . 2) (dx . 3) (si . 4) (di . 5) 85 '((ax . 0) (bx . 1) (cx . 2) (dx . 3) (si . 4) (di . 5)
@@ -127,17 +121,8 @@ with a definition that really does change some file names."
127 (int86 33 regs)) 121 (int86 33 regs))
128 122
129;; Support for printing under MS-DOS, see lpr.el and ps-print.el. 123;; Support for printing under MS-DOS, see lpr.el and ps-print.el.
130(defcustom dos-printer "PRN" 124;; See dos-vars.el for defcustom.
131 "*The name of a local MS-DOS device to which data is sent for printing. 125(defvar dos-printer)
132\(Note that PostScript files are sent to `dos-ps-printer', which see.\)
133
134Typical non-default settings would be \"LPT1\" to \"LPT3\" for
135parallel printers, or \"COM1\" to \"COM4\" or \"AUX\" for serial
136printers. You can also set it to a name of a file, in which
137case the output gets appended to that file.
138If you want to discard the printed output, set this to \"NUL\"."
139 :type 'file ; could use string but then we lose completion for files.
140 :group 'dos-fns)
141 126
142(defun dos-print-region-function (start end 127(defun dos-print-region-function (start end
143 &optional lpr-prog 128 &optional lpr-prog
@@ -178,25 +163,8 @@ START and END."
178;; the same output as `lpr-buffer' and `lpr-region', accordingly. 163;; the same output as `lpr-buffer' and `lpr-region', accordingly.
179(setq lpr-headers-switches "(page headers are not supported)") 164(setq lpr-headers-switches "(page headers are not supported)")
180 165
181(defcustom dos-ps-printer "PRN" 166;; See dos-vars.el for defcustom.
182 "*Method for printing PostScript files under MS-DOS. 167(defvar dos-ps-printer)
183
184If the value is a string, then it is taken as the name of the
185device to which PostScript files are written. By default it
186is the default printer device; typical non-default settings
187would be \"LPT1\" to \"LPT3\" for parallel printers, or \"COM1\"
188to \"COM4\" or \"AUX\" for serial printers. You can also set it
189to a name of a file, in which case the output gets appended
190to that file. \(Note that `ps-print' package already has
191facilities for printing to a file, so you might as well use
192them instead of changing the setting of this variable.\) If
193you want to silently discard the printed output, set this to \"NUL\".
194
195If the value is anything but a string, PostScript files will be
196piped to the program given by `ps-lpr-command', with switches
197given by `ps-lpr-switches', which see."
198 :type '(choice file (const :tag "Pipe to ps-lpr-command" pipe))
199 :group 'dos-fns)
200 168
201(setq ps-lpr-command "gs") 169(setq ps-lpr-command "gs")
202 170