From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Weis Newsgroups: gmane.emacs.help Subject: Re: Cannot print with emacs Date: Tue, 6 Sep 2011 23:21:34 +0200 Message-ID: <20110906212133.GA4549@pollux.local.net> References: <20110721122807.GA2757@pollux.local.net> <87livq7rwa.fsf@gmail.com> <20110724194841.GA3901@pollux.local.net> <87ipqidsl6.fsf@gmail.com> <20110801211514.GA3420@pollux.local.net> <87aabqo9qt.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1315344133 11584 80.91.229.12 (6 Sep 2011 21:22:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2011 21:22:13 +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 Sep 06 23:22:10 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 1R135t-0003TU-8w for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Sep 2011 23:22:09 +0200 Original-Received: from localhost ([::1]:49291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R135s-0002v0-Qq for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Sep 2011 17:22:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R135o-0002uu-RZ for help-gnu-emacs@gnu.org; Tue, 06 Sep 2011 17:22:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R135n-0007Ne-Uq for help-gnu-emacs@gnu.org; Tue, 06 Sep 2011 17:22:04 -0400 Original-Received: from smtp4-g21.free.fr ([212.27.42.4]:45452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R135n-00076J-39 for help-gnu-emacs@gnu.org; Tue, 06 Sep 2011 17:22:03 -0400 Original-Received: from che78-3-82-246-30-233.fbx.proxad.net (unknown [82.246.30.233]) by smtp4-g21.free.fr (Postfix) with ESMTP id 47D7C4C80B7; Tue, 6 Sep 2011 23:21:35 +0200 (CEST) Original-Received: by che78-3-82-246-30-233.fbx.proxad.net (Postfix, from userid 2000) id 184282848A; Tue, 6 Sep 2011 23:21:34 +0200 (CEST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87aabqo9qt.fsf@gmail.com> User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.27.42.4 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:82166 Archived-At: On Wed, Aug 03, 2011 at 04:22:34PM +0200, Rasmus wrote: > Harald Weis writes: > > > I see. I never used that for my Lexmark T520 Duplex Laser Printer. > > I always provide the LEXT520.PPD file which I've downloaded many years > > ago from a Lexmark site. > > I think I have used both a PPD provided by Lexmark and a generic Post > Script driver. > > > No, something is wrong with my present emacs on several machines. > > As I cannot find out I better give up. I suppose it will work the next > > time when I reinstall _all_ ports. > > Try to start Emacs without loading config files (emacs -q). If the > problem persists it is probably not Emacs-centric but related to your > print server (CUPS). If it persists bisec your config file(s). Sorry, Rasmus, for this long pause. I was sort of far away from keyboard for a while. The command `M-x print-buffer' (which I never used before, I must apologize) does work fine with or without the config file. In a sense, Peter's out-of-the-box remark is correct provided that lpr is symlinked to /usr/local/bin/lpr. That means that the CUPS print server is alright. It's the Printing package (2 lines in .emacs without any customization) which does not work. It produces a Postscript file and puts the printer in a "900 Service RIP Software" error state (the printer must be restarted). Running ``lpr '' has exactly the same effect. The bug seems to be in the generated Postscript file. Please note that the Postscript Preview is perfect! Needless to say that the printer does work fine after restart which is easily checked with the command ``a2ps foo.txt | lpr''. Cheers, Harald