mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +00:00
(ps-do-despool): Bind ps-printer-name to printer-name if the former is
nil.
This commit is contained in:
parent
070d1949d1
commit
200127fd0d
@ -4005,12 +4005,13 @@ If FACE is not a valid face name, it is used default face."
|
||||
(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)))
|
||||
|
Loading…
Reference in New Issue
Block a user