[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lpr options and printer names containing spaces
From: |
Andrew Maguire (SWW) |
Subject: |
lpr options and printer names containing spaces |
Date: |
Fri, 5 Jan 2001 17:00:35 -0000 |
In GNU Emacs 20.7.2 (i386-*-nt4.0.1381)
of Mon Nov 27 2000 on buffy
configured using `configure NT'
I have been playing around trying to get print-buffer to work with a printer
name that includes a space - Ugh!
(setq lpr-command "print")
(setq printer-name "\\\\network\\printer name")
It is caused by the subtle interactions between printer-name and
w32-quote-process-args
and perhaps a bug in the lpr code that should perhaps quote the printer-name
correctly
(/D:"\\\\network\\printer name").
The results of my findings are as follows:
w32-quote-process-args has to be nil to prevent the printer-name being split
on each space.
I tried setting it to ?\" but although that returned the error from print:
Invalid switch - "/D:"\\network\printer name""
I could not see why it was invalid because it looked ok to me.
If I did (setq printer-name "\"\\\\network\\printer name\"") then the lpr
code did not recognise it as network printer name
and stuck c:\ in front of it.
I ultimately want call-process to look something like:
(call-process "print" nil " *print-region-helper*" nil
"/D:\"\\\\network\\printer name\"" "c:\temp\EB4564EC")
Andrew
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lpr options and printer names containing spaces,
Andrew Maguire (SWW) <=