From: Ed Reingold <edward.reingold@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Printer definition
Date: Thu, 5 May 2011 17:26:43 -0700 (PDT) [thread overview]
Message-ID: <47db22c1-07c4-45f0-9f38-a1aca278f57e@p18g2000yqj.googlegroups.com> (raw)
In-Reply-To: jwvk4e7xpep.fsf-monnier+gnu.emacs.help@gnu.org
The best thing would be to trap the error (the way it does with pr)
and signal the user. No response meant I had to manually debug
the code. The man page for the lpr that I use specifically says that
it does not honor the -d option.
he problem is that, for some reason, the flag to the lpr command was
> > set to "-d"
> > instead of "-P" even though Emacs knows it's a Unix-like system
> > (Solaris).
>
> "lp -d<printer>" is a standard Unix command, and lpr.el apparently
> thinks it's the right command to use for your system. IIRC Solaris
> indeed has an "lp" command (tho my experience with Solaris is from many
> years ago), so normally all you have to do is (setq printer-name
> "HP4050HM_FDx"). Have you tried to simply remove the (setq lpr-command
> "lpr")?
>
> Admittedly, maybe lpr-printer-switch should be automatically updated to
> "-P" if you set lpr-command to "lpr".
>
> Stefan
next prev parent reply other threads:[~2011-05-06 0:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-02 19:10 Printer definition Ed Reingold
2011-05-03 15:10 ` Ed Reingold
2011-05-04 0:50 ` Stefan Monnier
2011-05-06 0:26 ` Ed Reingold [this message]
2011-05-06 16:40 ` Stefan Monnier
2011-05-06 22:19 ` Ed Reingold
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=47db22c1-07c4-45f0-9f38-a1aca278f57e@p18g2000yqj.googlegroups.com \
--to=edward.reingold@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).