From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rami A Newsgroups: gmane.emacs.help Subject: Re: postscript printing in emacs Date: Fri, 21 Jun 2013 09:30:34 -0700 (PDT) Message-ID: References: <34388c9b-86fc-4f47-9a7b-1601f10c8ac0@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1371832574 4960 80.91.229.3 (21 Jun 2013 16:36:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 16:36:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 21 18:36:14 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 1Uq4Jo-0006Rx-6y for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 18:36:12 +0200 Original-Received: from localhost ([::1]:59361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq4Jn-0008Nv-Or for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 12:36:11 -0400 X-Received: by 10.224.205.138 with SMTP id fq10mr13750456qab.1.1371832234341; Fri, 21 Jun 2013 09:30:34 -0700 (PDT) X-Received: by 10.50.22.9 with SMTP id z9mr245617ige.6.1371832234302; Fri, 21 Jun 2013 09:30:34 -0700 (PDT) Original-Path: usenet.stanford.edu!bw2no2562049qab.0!news-out.google.com!y6ni3811qax.0!nntp.google.com!j2no1111793qak.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=148.87.19.194; posting-account=HZ4YzgoAAABkTSCruZ7Bs4hufjlOUmBF Original-NNTP-Posting-Host: 148.87.19.194 User-Agent: G2/1.0 Injection-Date: Fri, 21 Jun 2013 16:30:34 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:199383 X-Mailman-Approved-At: Fri, 21 Jun 2013 12:35:56 -0400 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:91647 Archived-At: On Thursday, June 20, 2013 2:40:59 AM UTC-7, Peter Dyballa wrote: > Am 20.06.2013 um 01:46 schrieb Rami A: >=20 >=20 >=20 > > How do I incorporate this functionality in emacs so I could choose a re= gion or simply print the whole buffer using "postscript print from buffer/r= egion" from inside emacs? >=20 >=20 >=20 > Have you tried to set ps-lpr-command and ps-lpr-switches via the customis= ation interface? >=20 >=20 >=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 d= irectly "mp -l -s | lp". >=20 >=20 >=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= =85 (too long ago) >=20 >=20 >=20 >=20 >=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 PostScri= pt viewer to see what the printer queue would send to the printer. >=20 >=20 >=20 > -- >=20 > Greetings >=20 >=20 >=20 > Pete >=20 >=20 >=20 > Perl=97the only language that looks the same before and after RSA encrypt= ion. >=20 > - Keith Bostic Thanks Pete, I did follow your suggestions: (setq ps-lpr-command "mp | lp") (setq ps-lpr-switches '("-l" " -s")) But when trying to print I get this message: Searching for program: No such file or directory, mp | lp It is possible that ps-lpr-command expects the path of the printing program= , not a command.