From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ed Reingold Newsgroups: gmane.emacs.help Subject: Re: Printer definition Date: Thu, 5 May 2011 17:26:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <47db22c1-07c4-45f0-9f38-a1aca278f57e@p18g2000yqj.googlegroups.com> References: <81dce585-a99e-4908-a73f-25729f644791@v10g2000yqn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306268757 18934 80.91.229.12 (24 May 2011 20:25:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:25:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:25:53 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyAr-0000Ee-F4 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:25:53 +0200 Original-Received: from localhost ([::1]:53820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyAq-0008CQ-UR for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:25:53 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!p18g2000yqj.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 24.12.213.41 Original-X-Trace: posting.google.com 1304641603 3040 127.0.0.1 (6 May 2011 00:26:43 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 6 May 2011 00:26:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p18g2000yqj.googlegroups.com; posting-host=24.12.213.41; posting-account=--wjsgoAAAC2hIaIHloh8dWmRYX8Q9by User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:186794 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81147 Archived-At: 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 =A0"-P" even though Emacs knows it's a Unix-like system > > (Solaris). > > "lp -d" is a standard Unix command, and lpr.el apparently > thinks it's the right command to use for your system. =A0IIRC 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"). =A0Have 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". > > =A0 =A0 =A0 =A0 Stefan