changeset 30101:178c89d24a0d

(lpr-page-header-switches): Add `-h' switch. (print-region-1): Don't hard code `-h' here.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 06 Jul 2000 20:08:45 +0000
parents 020fc2e83129
children 9406cb07bac7
files lisp/lpr.el
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/lpr.el	Thu Jul 06 20:08:28 2000 +0000
+++ b/lisp/lpr.el	Thu Jul 06 20:08:45 2000 +0000
@@ -115,7 +115,7 @@
 
 ;; 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 @@
 	      (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)
-					lpr-page-header-switches))
+				 lpr-page-header-switches)
 	    (setq start (point-min) end (point-max))))
       (let ((printer-name-switch (if (memq system-type
 					   '(usg-unix-v dgux hpux irix))