Mercurial > emacs
changeset 14190:395b22713872
(ps-do-despool): On MS-DOS, allow both the usual and
the alternative printing methods.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 15 Jan 1996 22:50:35 +0000 |
parents | 557b3d11a381 |
children | a340d3b95455 |
files | lisp/ps-print.el |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ps-print.el Mon Jan 15 22:50:00 1996 +0000 +++ b/lisp/ps-print.el Mon Jan 15 22:50:35 1996 +0000 @@ -1869,11 +1869,14 @@ (message "Printing...")) (save-excursion (set-buffer ps-spool-buffer) - (if (eq system-type 'ms-dos) - (write-region (point-min) (point-max) "PRN") - (apply 'call-process-region - (point-min) (point-max) ps-lpr-command nil 0 nil - ps-lpr-switches))) + (if (and (eq system-type 'ms-dos) (stringp dos-ps-printer)) + (write-region (point-min) (point-max) dos-ps-printer t 0) + (let ((binary-process-input t)) ; for MS-DOS + (apply 'call-process-region + (point-min) (point-max) ps-lpr-command nil + (if (fboundp 'start-process) 0 nil) + nil + ps-lpr-switches)))) (if ps-razzle-dazzle (message "Printing...done"))) (kill-buffer ps-spool-buffer)))