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: Tue, 3 May 2011 08:10:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <81dce585-a99e-4908-a73f-25729f644791@v10g2000yqn.googlegroups.com> References: 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 1306268581 17740 80.91.229.12 (24 May 2011 20:23:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:23:01 +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:22:57 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 1QOy7z-0006k5-Cp for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:22:55 +0200 Original-Received: from localhost ([::1]:43903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOy7y-0002qz-QX for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:22:54 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!v10g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 24.12.213.41 Original-X-Trace: posting.google.com 1304435414 4041 127.0.0.1 (3 May 2011 15:10:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 3 May 2011 15:10:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v10g2000yqn.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:186778 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:81130 Archived-At: The 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). Debugging this meant going through the ELisp code in lpr.el and ps-print.el, something that I should never have had to do. On May 2, 2:10=A0pm, Ed Reingold wrote: > I cannot get the default printer/command working! =A0I tried the > following: > > =A0 =A0 =A0 =A0 /usr/local/emacs-23.3/bin/emacs -q -l em23-printer-test > > where the file em23-printer-test contains the two lines > > =A0 =A0 =A0 (setq printer-name "HP4050HM_FDx") > =A0 =A0 =A0 (setq lpr-command "lpr") > > and then try to print a buffer, but nothing happens. =A0When I do > > =A0 =A0 =A0 =A0lpr -PHP4050HM_FDx .login > > in a shell, it works fine. =A0What am I doing wrong? =A0I have the same > problems > when trying to use ps-print.