]> code.delx.au - gnu-emacs/commitdiff
(direct-print-region-helper): Check for printer
authorGeoff Voelker <voelker@cs.washington.edu>
Thu, 28 Jan 1999 04:48:30 +0000 (04:48 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Thu, 28 Jan 1999 04:48:30 +0000 (04:48 +0000)
being t as well as a string.

lisp/dos-w32.el

index 825281b11f811b2790cee84742ae504e97ea6489..2d5377ef747701b331ff39136cad15542b507023 100644 (file)
@@ -292,7 +292,7 @@ filesystem mounted on drive Z:, FILESYSTEM could be \"Z:\"."
     ;; asking command.com to copy the file.
     ;; No action is needed for UNC printer names, which is just as well
     ;; because `expand-file-name' doesn't support UNC names on MS-DOS.
-    (if (not (string-match "^\\\\" printer))
+    (if (and (stringp printer) (not (string-match "^\\\\" printer)))
        (setq printer (expand-file-name printer safe-dir)))
     ;; Handle known programs specially where necessary.
     (unwind-protect