From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: postscript printing in emacs Date: Thu, 20 Jun 2013 06:21:16 -0700 (PDT) Message-ID: <52b37bf0-aab3-4d9e-8df5-6ad2789387cd@default> References: <34388c9b-86fc-4f47-9a7b-1601f10c8ac0@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1371734503 1536 80.91.229.3 (20 Jun 2013 13:21:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Jun 2013 13:21:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa , Rami A Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 20 15:21:42 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Upeo1-0001TE-Db for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Jun 2013 15:21:41 +0200 Original-Received: from localhost ([::1]:36528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upeo0-00082m-Vp for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Jun 2013 09:21:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upenl-00082e-9q for help-gnu-emacs@gnu.org; Thu, 20 Jun 2013 09:21:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Upenh-0003WA-3V for help-gnu-emacs@gnu.org; Thu, 20 Jun 2013 09:21:25 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:38098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upeng-0003W5-U9 for help-gnu-emacs@gnu.org; Thu, 20 Jun 2013 09:21:21 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5KDLHai001072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Jun 2013 13:21:18 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5KDLH7o011917 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Jun 2013 13:21:17 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5KDLG9p011889; Thu, 20 Jun 2013 13:21:16 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:91616 Archived-At: > > How do I incorporate this functionality in emacs so I could choose a > > region or simply print the whole buffer using "postscript print from > > buffer/region" from inside emacs? >=20 > Have you tried to set ps-lpr-command and ps-lpr-switches via the > customisation interface? >=20 > In ps-lpr-command instead of lpr you can either use "mp | lp", a pipe, an= d > the also set ps-lpr-switches to become "-l -s" or use as ps-lpr-command > directly "mp -l -s | lp". >=20 > A third option is to add an mp filter to Solaris' lpfilters. Then you cou= ld > use as ps-lpr-command "lp -T MP". I am not sure where the mp options go. > (too long ago) >=20 > When you are experimenting with printing options you can stop printing fr= om > the particular queue (or switch off the printer) and then use a PostScrip= t > viewer to see what the printer queue would send to the printer. See also library printing.el, which provides a helpful interface to the ps-= * features.