unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Default printer
@ 2005-10-09 16:04 Bruce_Ingalls
  2005-10-10 17:08 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce_Ingalls @ 2005-10-09 16:04 UTC (permalink / raw)


I recently posted code on gnu.emacs.sources, on how to determine the
default printer on modern Microsoft Windows systems.
This code could certainly be improved, to, say, list *all* known printers,
for M-x customize to select from. I'm sure one of our inclined readers
could do this far more efficiently, than could I.

Any thoughts, on good strategies for determining default printers, or
lists of known printers, on (GNU) Linux compatible systems, (e.g. Solaris,
BSD), or on OSX, VMS, etc?

Should we leave /dev/lp0 as a good guess?
How about scanning /etc/printcap?
I suspect Red Hat leaves something in /etc/sysconfig/
What about CUPS & IPP?

While my intent is to use this, to make Emacs easier to use, perhaps I
should ask this on comp.unix.shell, or other suggestion?

Thanks, Bruce.

 



-- 
Sent by  bruce.ingalls  from gmail  subpart  from com
This is a spam protected message. Please answer with reference header.
Posted via http://www.usenet-replayer.com

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

* Re: Default printer
  2005-10-09 16:04 Default printer Bruce_Ingalls
@ 2005-10-10 17:08 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2005-10-10 17:08 UTC (permalink / raw)


Bruce_Ingalls wrote:
> I recently posted code on gnu.emacs.sources, on how to determine the
> default printer on modern Microsoft Windows systems.
> This code could certainly be improved, to, say, list *all* known printers,
> for M-x customize to select from. I'm sure one of our inclined readers
> could do this far more efficiently, than could I.
> 
> Any thoughts, on good strategies for determining default printers, or
> lists of known printers, on (GNU) Linux compatible systems, (e.g. Solaris,
> BSD), or on OSX, VMS, etc?

10 years ago I wrote printers.el, which used the LPDEST environment
variable (or PRINTER) and the lpstat command (or the /etc/printcap file)
to provide a primitive customization facility for System V (or BSD) Unix
(M-x set-system-printer-default, M-x read-printer):

http://groups.google.com/group/gnu.emacs.sources/msg/5f609871cca03963

> Should we leave /dev/lp0 as a good guess?
> How about scanning /etc/printcap?
> I suspect Red Hat leaves something in /etc/sysconfig/
> What about CUPS & IPP?

/dev/lp*: No such file or directory

http://www.emacswiki.org/cgi-bin/wiki/CupsInEmacs

-- 
Kevin Rodgers

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

end of thread, other threads:[~2005-10-10 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-09 16:04 Default printer Bruce_Ingalls
2005-10-10 17:08 ` Kevin Rodgers

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).