From 416afb32052f252922ed937746580f1e1863cd48 Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Thu, 28 Jan 1999 04:48:30 +0000 Subject: [PATCH] (direct-print-region-helper): Check for printer being t as well as a string. --- lisp/dos-w32.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/dos-w32.el b/lisp/dos-w32.el index 825281b11f8..2d5377ef747 100644 --- a/lisp/dos-w32.el +++ b/lisp/dos-w32.el @@ -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 -- 2.39.2