comparison lisp/lpr.el @ 27007:2d337fafb392

(lpr-buffer, print-buffer, lpr-region, print-region): Doc fixes.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 Dec 1999 03:35:51 +0000
parents af8d23cd7220
children efd5a62ccce9
comparison
equal deleted inserted replaced
27006:d6d99ee4a5ae 27007:2d337fafb392
121 :type '(repeat string) 121 :type '(repeat string)
122 :group 'lpr) 122 :group 'lpr)
123 123
124 ;;;###autoload 124 ;;;###autoload
125 (defun lpr-buffer () 125 (defun lpr-buffer ()
126 "Print buffer contents as with Unix command `lpr'. 126 "Print buffer contents without pagination or page headers.
127 `lpr-switches' is a list of extra switches (strings) to pass to lpr." 127 See the variables `lpr-switches' and `lpr-command'
128 for customization of the printer command."
128 (interactive) 129 (interactive)
129 (print-region-1 (point-min) (point-max) lpr-switches nil)) 130 (print-region-1 (point-min) (point-max) lpr-switches nil))
130 131
131 ;;;###autoload 132 ;;;###autoload
132 (defun print-buffer () 133 (defun print-buffer ()
133 "Paginate and print buffer contents. 134 "Paginate and print buffer contents.
134 Normally invokes `pr' for pagination, but see the variable 135
135 `lpr-page-header-program'. Printing is normally done with `lpr' 136 The variable `lpr-headers-switches' controls how to paginate.
136 or `lp'; the variable `lpr-command' changes this. 137 If it is nil (the default), we run the `pr' program (or whatever program
137 138 `lpr-page-header-program' specifies) to paginate.
138 Also see the variables `lpr-switches' and `lpr-page-header-switches' 139 `lpr-page-header-switches' specifies the switches for that program.
139 for further customization of the commands used." 140
141 Otherwise, the switches in `lpr-headers-switches' are used
142 in the print command itself; we expect them to request pagination.
143
144 See the variables `lpr-switches' and `lpr-command'
145 for further customization of the printer command."
140 (interactive) 146 (interactive)
141 (print-region-1 (point-min) (point-max) lpr-switches t)) 147 (print-region-1 (point-min) (point-max) lpr-switches t))
142 148
143 ;;;###autoload 149 ;;;###autoload
144 (defun lpr-region (start end) 150 (defun lpr-region (start end)
145 "Print region contents as with Unix command `lpr'. 151 "Print region contents without pagination or page headers.
146 `lpr-switches' is a list of extra switches (strings) to pass to lpr." 152 See the variables `lpr-switches' and `lpr-command'
153 for customization of the printer command."
147 (interactive "r") 154 (interactive "r")
148 (print-region-1 start end lpr-switches nil)) 155 (print-region-1 start end lpr-switches nil))
149 156
150 ;;;###autoload 157 ;;;###autoload
151 (defun print-region (start end) 158 (defun print-region (start end)
152 "Print region contents as with Unix command `lpr -p'. 159 "Paginate and print the region contents.
153 `lpr-switches' is a list of extra switches (strings) to pass to lpr." 160
161 The variable `lpr-headers-switches' controls how to paginate.
162 If it is nil (the default), we run the `pr' program (or whatever program
163 `lpr-page-header-program' specifies) to paginate.
164 `lpr-page-header-switches' specifies the switches for that program.
165
166 Otherwise, the switches in `lpr-headers-switches' are used
167 in the print command itself; we expect them to request pagination.
168
169 See the variables `lpr-switches' and `lpr-command'
170 for further customization of the printer command."
154 (interactive "r") 171 (interactive "r")
155 (print-region-1 start end lpr-switches t)) 172 (print-region-1 start end lpr-switches t))
156 173
157 (defun print-region-1 (start end switches page-headers) 174 (defun print-region-1 (start end switches page-headers)
158 ;; On some MIPS system, having a space in the job name 175 ;; On some MIPS system, having a space in the job name