aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-07-06 20:08:45 +0000
committerGerd Moellmann2000-07-06 20:08:45 +0000
commit53e7c664c81818ae900a894c4444d7d2cfdf1d39 (patch)
treedac508729a6a20543d4114a4779dbb5d7288d2cf
parentc70d73590c549cee68d90c761e23941756a2839e (diff)
downloademacs-53e7c664c81818ae900a894c4444d7d2cfdf1d39.tar.gz
emacs-53e7c664c81818ae900a894c4444d7d2cfdf1d39.zip
(lpr-page-header-switches): Add `-h' switch.
(print-region-1): Don't hard code `-h' here.
-rw-r--r--lisp/lpr.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/lpr.el b/lisp/lpr.el
index 7eb76613719..21a1ed24f81 100644
--- a/lisp/lpr.el
+++ b/lisp/lpr.el
@@ -115,7 +115,7 @@ See definition of `print-region-1' for calling conventions."
115 115
116;; Berkeley systems support -F, and GNU pr supports both -f and -F, 116;; Berkeley systems support -F, and GNU pr supports both -f and -F,
117;; So it looks like -F is a better default. 117;; So it looks like -F is a better default.
118(defcustom lpr-page-header-switches '("-F") 118(defcustom lpr-page-header-switches '("-h" "-F")
119 "*List of strings to use as options for the page-header-generating program. 119 "*List of strings to use as options for the page-header-generating program.
120The variable `lpr-page-header-program' specifies the program to use." 120The variable `lpr-page-header-program' specifies the program to use."
121 :type '(repeat string) 121 :type '(repeat string)
@@ -216,8 +216,7 @@ for further customization of the printer command."
216 (setq start (car new-coords) end (cdr new-coords))) 216 (setq start (car new-coords) end (cdr new-coords)))
217 (apply 'call-process-region start end lpr-page-header-program 217 (apply 'call-process-region start end lpr-page-header-program
218 t t nil 218 t t nil
219 (nconc (list "-h" title) 219 lpr-page-header-switches)
220 lpr-page-header-switches))
221 (setq start (point-min) end (point-max)))) 220 (setq start (point-min) end (point-max))))
222 (let ((printer-name-switch (if (memq system-type 221 (let ((printer-name-switch (if (memq system-type
223 '(usg-unix-v dgux hpux irix)) 222 '(usg-unix-v dgux hpux irix))