Mercurial > emacs
diff lisp/ps-print.el @ 22751:75c35003c69f
(ps-do-despool): Bind ps-printer-name to printer-name if the former is
nil.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Mon, 13 Jul 1998 19:58:49 +0000 |
parents | 3cf03f32956c |
children | 25c95d9da0af |
line wrap: on
line diff
--- a/lisp/ps-print.el Mon Jul 13 19:54:15 1998 +0000 +++ b/lisp/ps-print.el Mon Jul 13 19:58:49 1998 +0000 @@ -4005,12 +4005,13 @@ (and ps-razzle-dazzle (message "Printing...")) (save-excursion (set-buffer ps-spool-buffer) - (let ((coding-system-for-write 'raw-text-unix) - (ps-lpr-switches - (append - (and (stringp ps-printer-name) - (list (concat "-P" ps-printer-name))) - ps-lpr-switches))) + (let* ((coding-system-for-write 'raw-text-unix) + (ps-printer-name (or ps-printer-name printer-name)) + (ps-lpr-switches + (append + (and (stringp ps-printer-name) + (list (concat "-P" ps-printer-name))) + ps-lpr-switches))) (if (and (memq system-type '(ms-dos windows-nt)) (or (and (boundp 'dos-ps-printer) (stringp (symbol-value 'dos-ps-printer)))