summaryrefslogtreecommitdiff
path: root/lisp/lpr.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-02-27 19:07:09 +0000
committerRichard M. Stallman <rms@gnu.org>2001-02-27 19:07:09 +0000
commit9f84479bd089ac0c1089003fed123141648a5a45 (patch)
tree17fcebde1e7cef0504e9cdf56b3727c141393da1 /lisp/lpr.el
parent91cb6e516342abc4b080f00c464f0531b0cef663 (diff)
downloademacs-9f84479bd089ac0c1089003fed123141648a5a45.tar.gz
(lpr-page-header-switches, print-region-1): Undo 2000-07-06 change.
Diffstat (limited to 'lisp/lpr.el')
-rw-r--r--lisp/lpr.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/lpr.el b/lisp/lpr.el
index 113e991f5e9..3188e96d763 100644
--- a/lisp/lpr.el
+++ b/lisp/lpr.el
@@ -139,7 +139,7 @@ See definition of `print-region-1' for calling conventions."
;; Berkeley systems support -F, and GNU pr supports both -f and -F,
;; So it looks like -F is a better default.
-(defcustom lpr-page-header-switches '("-h" "-F")
+(defcustom lpr-page-header-switches '("-F")
"*List of strings to use as options for the page-header-generating program.
The variable `lpr-page-header-program' specifies the program to use."
:type '(repeat string)
@@ -242,7 +242,8 @@ for further customization of the printer command."
(let ((new-coords (print-region-new-buffer start end)))
(apply 'call-process-region (car new-coords) (cdr new-coords)
lpr-page-header-program t t nil
- lpr-page-header-switches))
+ (nconc (list "-h" title)
+ lpr-page-header-switches)))
(setq start (point-min)
end (point-max))))
(apply (or print-region-function 'call-process-region)