* doc/emacs/msdog.texi question
@ 2012-04-14 19:28 Glenn Morris
2012-04-14 19:32 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2012-04-14 19:28 UTC (permalink / raw
To: emacs-devel
Question prompted by doc/emacs/msdog.texi:
Emacs on Windows automatically determines your default printer and
sets the variable @code{printer-name} to that printer's name.
Is that correct? It looks to me like there is a default-printer-name
function that gets used as a fallback if printer-name is nil.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: doc/emacs/msdog.texi question
2012-04-14 19:28 doc/emacs/msdog.texi question Glenn Morris
@ 2012-04-14 19:32 ` Eli Zaretskii
2012-04-14 19:53 ` Glenn Morris
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2012-04-14 19:32 UTC (permalink / raw
To: Glenn Morris; +Cc: emacs-devel
> From: Glenn Morris <rgm@gnu.org>
> Date: Sat, 14 Apr 2012 15:28:14 -0400
>
>
> Question prompted by doc/emacs/msdog.texi:
>
> Emacs on Windows automatically determines your default printer and
> sets the variable @code{printer-name} to that printer's name.
>
> Is that correct?
Yes. Although this determination does not always succeed in practice.
> It looks to me like there is a default-printer-name function that
> gets used as a fallback if printer-name is nil.
That function _is_ where we determine the default printer.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: doc/emacs/msdog.texi question
2012-04-14 19:32 ` Eli Zaretskii
@ 2012-04-14 19:53 ` Glenn Morris
2012-04-14 20:13 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2012-04-14 19:53 UTC (permalink / raw
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii wrote:
>> It looks to me like there is a default-printer-name function that
>> gets used as a fallback if printer-name is nil.
>
> That function _is_ where we determine the default printer.
I'm confused. Where is the code that does
(setq printer-name ...)
or equivalent? All I see is direct-print-region-function, calling
(default-printer-name) if printer-name is nil.
(And why doesn't the doc of printer-name say "On MS Windows, this is set
automatically."...)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: doc/emacs/msdog.texi question
2012-04-14 19:53 ` Glenn Morris
@ 2012-04-14 20:13 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2012-04-14 20:13 UTC (permalink / raw
To: Glenn Morris; +Cc: emacs-devel
> From: Glenn Morris <rgm@gnu.org>
> Cc: emacs-devel@gnu.org
> Date: Sat, 14 Apr 2012 15:53:28 -0400
>
> Eli Zaretskii wrote:
>
> >> It looks to me like there is a default-printer-name function that
> >> gets used as a fallback if printer-name is nil.
> >
> > That function _is_ where we determine the default printer.
>
> I'm confused. Where is the code that does
>
> (setq printer-name ...)
>
> or equivalent? All I see is direct-print-region-function, calling
> (default-printer-name) if printer-name is nil.
Ah, I misunderstood your question (the sentence you cited states 2
facts, and I thought you were asking about the first one). Yes you
are right: the part about setting printer-name to the default printer
is wrong and should be deleted from the manual.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-14 20:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-14 19:28 doc/emacs/msdog.texi question Glenn Morris
2012-04-14 19:32 ` Eli Zaretskii
2012-04-14 19:53 ` Glenn Morris
2012-04-14 20:13 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.