From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Default printer
Date: Mon, 10 Oct 2005 11:08:07 -0600 [thread overview]
Message-ID: <die75p$vie$1@sea.gmane.org> (raw)
In-Reply-To: <l.1128873894.1351348876@131.gibbsnewyork.com>
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
prev parent reply other threads:[~2005-10-10 17:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-09 16:04 Default printer Bruce_Ingalls
2005-10-10 17:08 ` Kevin Rodgers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='die75p$vie$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).