aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-01-15 22:50:35 +0000
committerRichard M. Stallman1996-01-15 22:50:35 +0000
commit62901aeed82a5a1ade8bf8ae2f52eb040b61d97b (patch)
tree4cb102fc2b11537290be7d932e513e4316888075
parent868c7abd7c409fa70570f9e342ee8719ad0914a4 (diff)
downloademacs-62901aeed82a5a1ade8bf8ae2f52eb040b61d97b.tar.gz
emacs-62901aeed82a5a1ade8bf8ae2f52eb040b61d97b.zip
(ps-do-despool): On MS-DOS, allow both the usual and
the alternative printing methods.
-rw-r--r--lisp/ps-print.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 8968d414199..b1b13ccc2a1 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -1869,11 +1869,14 @@ EndDSCPage\n"))
1869 (message "Printing...")) 1869 (message "Printing..."))
1870 (save-excursion 1870 (save-excursion
1871 (set-buffer ps-spool-buffer) 1871 (set-buffer ps-spool-buffer)
1872 (if (eq system-type 'ms-dos) 1872 (if (and (eq system-type 'ms-dos) (stringp dos-ps-printer))
1873 (write-region (point-min) (point-max) "PRN") 1873 (write-region (point-min) (point-max) dos-ps-printer t 0)
1874 (apply 'call-process-region 1874 (let ((binary-process-input t)) ; for MS-DOS
1875 (point-min) (point-max) ps-lpr-command nil 0 nil 1875 (apply 'call-process-region
1876 ps-lpr-switches))) 1876 (point-min) (point-max) ps-lpr-command nil
1877 (if (fboundp 'start-process) 0 nil)
1878 nil
1879 ps-lpr-switches))))
1877 (if ps-razzle-dazzle 1880 (if ps-razzle-dazzle
1878 (message "Printing...done"))) 1881 (message "Printing...done")))
1879 (kill-buffer ps-spool-buffer))) 1882 (kill-buffer ps-spool-buffer)))