changeset 24213:3c29f6165eca

(direct-print-region-helper): Check for printer being t as well as a string.
author Geoff Voelker <voelker@cs.washington.edu>
date Thu, 28 Jan 1999 04:48:30 +0000
parents 36652d90b38f
children 4fb0bce809bc
files lisp/dos-w32.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dos-w32.el	Thu Jan 28 04:46:42 1999 +0000
+++ b/lisp/dos-w32.el	Thu Jan 28 04:48:30 1999 +0000
@@ -292,7 +292,7 @@
     ;; 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