unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs Printer Issues
@ 2007-01-31 23:51 Bill
  2007-02-01 22:06 ` Peter Dyballa
  2007-02-03  0:13 ` Peter Dyballa
  0 siblings, 2 replies; 4+ messages in thread
From: Bill @ 2007-01-31 23:51 UTC (permalink / raw)
  To: help-gnu-emacs

I'm running Emacs GNU 22.0.50.1 on OS X. I'm wondering how I can tell
Emacs to print to a particular printer.

I have to following in .emacs:

(ps-print-header t) '

(ps-print-header-frame nil)

(ps-printer-name "HP_1022")

But this doesn't not automatically send my Emacs print jobs to the
HP-1022 printer. Instead, I have to 'tell' Emacs which printer to use
by printing something from another application.

Any insight into this would be appreciated.

Bill J.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs Printer Issues
       [not found] <mailman.3867.1170341495.2155.help-gnu-emacs@gnu.org>
@ 2007-02-01 17:06 ` Robert Thorpe
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Thorpe @ 2007-02-01 17:06 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 31, 11:51 pm, Bill <t...@cybcon.com> wrote:
> I'm running Emacs GNU 22.0.50.1 on OS X. I'm wondering how I can tell
> Emacs to print to a particular printer.
>
> I have to following in .emacs:
>
> (ps-print-header t) '
>
> (ps-print-header-frame nil)
>
> (ps-printer-name "HP_1022")

Is this not something like
(custom-set-variables
 '(ps-print-header t)
 '(ps-print-header-frame nil)
 '(ps-printer-name "HP_1022"))

ps-printer-name etc are all variables, not functions.

> But this doesn't not automatically send my Emacs print jobs to the
> HP-1022 printer. Instead, I have to 'tell' Emacs which printer to use
> by printing something from another application.

I think you have to give the entire UNC path using \\ to mean \.  Ie "\
\\\server\\HP_1022".

For other ways see:
http://www.gnu.org/software/emacs/windows/faq6.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs Printer Issues
  2007-01-31 23:51 Emacs Printer Issues Bill
@ 2007-02-01 22:06 ` Peter Dyballa
  2007-02-03  0:13 ` Peter Dyballa
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-02-01 22:06 UTC (permalink / raw)
  To: Bill; +Cc: help-gnu-emacs


Am 01.02.2007 um 00:51 schrieb Bill:

> (ps-printer-name "HP_1022")
>
> But this doesn't not automatically send my Emacs print jobs to the
> HP-1022 printer. Instead, I have to 'tell' Emacs which printer to use
> by printing something from another application.

How do you "print?"

Is "HP_1022" listed when you invoke lpq on the command line?

Which version of GNU Emacs 22.0.50 are you using, the X11 client or  
some Carbon version?

--
Greetings

   Pete

Got Mole problems?
Call Avogadro 6.02 x 10^23

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs Printer Issues
  2007-01-31 23:51 Emacs Printer Issues Bill
  2007-02-01 22:06 ` Peter Dyballa
@ 2007-02-03  0:13 ` Peter Dyballa
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-02-03  0:13 UTC (permalink / raw)
  To: Bill; +Cc: help-gnu-emacs


Am 01.02.2007 um 00:51 schrieb Bill:

> (ps-print-header t) '

This function or variable does not exist for my version of Carbon  
Emacs (the Japanese package).

>
> (ps-print-header-frame nil)

This function or variable does not exist for my version of Carbon  
Emacs (the Japanese package).

>
> (ps-printer-name "HP_1022")

This variable name is an internal one. What you can do, is set  
printer-name:

	(setq printer-name "HP_1022")

(This is legal Emacs Lisp; I don't know for sure whether you are  
citing valid ELisp statements or their idea.)
For me this works for an imaginary printer I installed as an IPP  
client: the print form shows initially that printer queue's name – if  
it is set as the default printer! This flaw might come from Mac OS X  
and its print GUI.

As a work-around you can invoke on the command line

	lpotions -d HP_1022

print from Carbon Emacs and re-set the default printer ...

--
Greetings

   Pete

Globalisation -- communism from above.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-03  0:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 23:51 Emacs Printer Issues Bill
2007-02-01 22:06 ` Peter Dyballa
2007-02-03  0:13 ` Peter Dyballa
     [not found] <mailman.3867.1170341495.2155.help-gnu-emacs@gnu.org>
2007-02-01 17:06 ` Robert Thorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).