# HG changeset patch # User Gerd Moellmann # Date 954502191 0 # Node ID efd5a62ccce9c0b7719ee60f8304b187b1a5431b # Parent a7b3ff772283bcf98494ef69f7e2b2b78b8ff3ff (print-region-1): Use -d to specify printer name for systems `usg-unix-v*, `dgux', `hpux', `irix'. diff -r a7b3ff772283 -r efd5a62ccce9 lisp/lpr.el --- a/lisp/lpr.el Fri Mar 31 11:28:14 2000 +0000 +++ b/lisp/lpr.el Fri Mar 31 11:29:51 2000 +0000 @@ -219,17 +219,21 @@ (nconc (list "-h" title) lpr-page-header-switches)) (setq start (point-min) end (point-max)))) - (apply (or print-region-function 'call-process-region) - (nconc (list start end lpr-command - nil nil nil) - (nconc (and lpr-add-switches - (list "-J" name)) - ;; These belong in pr if we are using that. - (and lpr-add-switches lpr-headers-switches - (list "-T" title)) - (and (stringp printer-name) - (list (concat "-P" printer-name))) - switches))) + (let ((printer-name-switch (if (memq system-type + '(usg-unix-v dgux hpux irix)) + "-d" "-P"))) + (apply (or print-region-function 'call-process-region) + (nconc (list start end lpr-command + nil nil nil) + (nconc (and lpr-add-switches + (list "-J" name)) + ;; These belong in pr if we are using that. + (and lpr-add-switches lpr-headers-switches + (list "-T" title)) + (and (stringp printer-name) + (list (concat printer-name-switch + printer-name))) + switches)))) (if (markerp end) (set-marker end nil)) (message "Spooling%s...done" switch-string))))