]> code.delx.au - gnu-emacs/commitdiff
Added support for the `default-printer-name' function.
authorJason Rumney <jasonr@gnu.org>
Wed, 28 Jan 2004 23:32:55 +0000 (23:32 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 28 Jan 2004 23:32:55 +0000 (23:32 +0000)
lisp/dos-w32.el

index c1c189166bb1ad4bd493d91d21ad09586d2aa4ea..d7b411fab3f724bd8804845be0c9aa319d5ac530 100644 (file)
@@ -378,7 +378,8 @@ indicates a specific program should be invoked."
         (printer (or (and (boundp 'dos-printer)
                           (stringp (symbol-value 'dos-printer))
                           (symbol-value 'dos-printer))
-                     printer-name)))
+                     printer-name
+                     (default-printer-name))))
     (or (eq coding-system-for-write 'no-conversion)
        (setq coding-system-for-write
              (aref eol-type 1)))       ; force conversion to DOS EOLs
@@ -411,7 +412,8 @@ indicates a specific program should be invoked."
   (let ((printer (or (and (boundp 'dos-ps-printer)
                          (stringp (symbol-value 'dos-ps-printer))
                          (symbol-value 'dos-ps-printer))
-                    ps-printer-name)))
+                    ps-printer-name
+                    (default-printer-name))))
     (direct-print-region-helper printer start end lpr-prog
                                delete-text buf display rest)))