Commit 53e7c664 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(lpr-page-header-switches): Add `-h' switch.

(print-region-1): Don't hard code `-h' here.
parent c70d7359
......@@ -115,7 +115,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 '("-F")
(defcustom lpr-page-header-switches '("-h" "-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)
......@@ -216,8 +216,7 @@ for further customization of the printer command."
(setq start (car new-coords) end (cdr new-coords)))
(apply 'call-process-region start end lpr-page-header-program
t t nil
(nconc (list "-h" title)
(setq start (point-min) end (point-max))))
(let ((printer-name-switch (if (memq system-type
'(usg-unix-v dgux hpux irix))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment