]> git.eshelyaron.com Git - emacs.git/commitdiff
(ps-do-despool): Alternative output method for MSDOS.
authorRichard M. Stallman <rms@gnu.org>
Fri, 29 Dec 1995 04:14:10 +0000 (04:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 29 Dec 1995 04:14:10 +0000 (04:14 +0000)
lisp/ps-print.el

index e3cba874a5b4ff51bc35625e52b073ce8ac9ce0b..90cfcab2fc229109667443a820a876398d8ca2a2 100644 (file)
@@ -1868,9 +1868,11 @@ EndDSCPage\n"))
          (message "Printing..."))
       (save-excursion
        (set-buffer ps-spool-buffer)
-       (apply 'call-process-region
-              (point-min) (point-max) ps-lpr-command nil 0 nil
-              ps-lpr-switches))
+       (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 ps-razzle-dazzle
          (message "Printing...done")))
     (kill-buffer ps-spool-buffer)))