mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(ps-do-despool): On MS-DOS, allow both the usual and
the alternative printing methods.
This commit is contained in:
parent
868c7abd7c
commit
62901aeed8
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user