aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-12-28 03:36:21 +0000
committerRichard M. Stallman1999-12-28 03:36:21 +0000
commitd7e110e4797e806140946802e26a4cd20c900cb5 (patch)
tree0df9eeab1cdc8be6964a1e6947e6798217ebabf3
parentdbd2182a1c865a61137b171ed9434bfeb585476d (diff)
downloademacs-d7e110e4797e806140946802e26a4cd20c900cb5.tar.gz
emacs-d7e110e4797e806140946802e26a4cd20c900cb5.zip
(lpr-buffer, print-buffer, lpr-region, print-region): Doc fixes.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/lpr.el39
2 files changed, 33 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b88584bb467..848346086ef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
11999-12-27 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2
3 * lpr.el (lpr-buffer, print-buffer, lpr-region, print-region):
4 Doc fixes.
5
11999-12-27 Gerd Moellmann <gerd@gnu.org> 61999-12-27 Gerd Moellmann <gerd@gnu.org>
2 7
3 * add-log.el (change-log-version-number-regexp-list) 8 * add-log.el (change-log-version-number-regexp-list)
diff --git a/lisp/lpr.el b/lisp/lpr.el
index 0ed7a1c418b..a6fe0459e73 100644
--- a/lisp/lpr.el
+++ b/lisp/lpr.el
@@ -123,34 +123,51 @@ The variable `lpr-page-header-program' specifies the program to use."
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." 127See the variables `lpr-switches' and `lpr-command'
128for 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.
134Normally invokes `pr' for pagination, but see the variable
135`lpr-page-header-program'. Printing is normally done with `lpr'
136or `lp'; the variable `lpr-command' changes this.
137 135
138Also see the variables `lpr-switches' and `lpr-page-header-switches' 136The variable `lpr-headers-switches' controls how to paginate.
139for further customization of the commands used." 137If it is nil (the default), we run the `pr' program (or whatever program
138`lpr-page-header-program' specifies) to paginate.
139`lpr-page-header-switches' specifies the switches for that program.
140
141Otherwise, the switches in `lpr-headers-switches' are used
142in the print command itself; we expect them to request pagination.
143
144See the variables `lpr-switches' and `lpr-command'
145for 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." 152See the variables `lpr-switches' and `lpr-command'
153for 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
161The variable `lpr-headers-switches' controls how to paginate.
162If 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
166Otherwise, the switches in `lpr-headers-switches' are used
167in the print command itself; we expect them to request pagination.
168
169See the variables `lpr-switches' and `lpr-command'
170for 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