Skip to content

Commit

Permalink
(ps-do-despool): On MS-DOS, allow both the usual and
Browse files Browse the repository at this point in the history
the alternative printing methods.
  • Loading branch information
Richard M. Stallman committed Jan 15, 1996
1 parent 5f06487 commit b0cea22
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lisp/ps-print.el
Expand Up @@ -1869,11 +1869,14 @@ EndDSCPage\n"))
(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)))
Expand Down

0 comments on commit b0cea22

Please sign in to comment.