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 12:58:30 -0700 (PDT) Message-ID: <986867a3-8f37-4eeb-9406-5f48fed7c725@googlegroups.com> 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 1371845008 5123 80.91.229.3 (21 Jun 2013 20:03:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 20:03:28 +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 22:03:30 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 1Uq7YO-0004dH-DN for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 22:03:28 +0200 Original-Received: from localhost ([::1]:58513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq7YN-0004lZ-QD for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 16:03:27 -0400 X-Received: by 10.224.42.141 with SMTP id s13mr14539341qae.3.1371844711355; Fri, 21 Jun 2013 12:58:31 -0700 (PDT) X-Received: by 10.50.20.136 with SMTP id n8mr280579ige.5.1371844711314; Fri, 21 Jun 2013 12:58:31 -0700 (PDT) Original-Path: usenet.stanford.edu!bw2no2581041qab.0!news-out.google.com!y6ni3811qax.0!nntp.google.com!j2no1132045qak.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 19:58:31 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:199392 X-Mailman-Approved-At: Fri, 21 Jun 2013 16:03:12 -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:91656 Archived-At: Hi again Pete, Thanks for your response. I am honestly not so proficient in emacs nor lisp. I simply want the same format that=20 mp -l -s "\!*" <\!* | lp=20 produces when used on the command line integrated from within emacs. I tried this: (setq ps-lpr-command "mp") (setq ps-lpr-switches '("-l" " -s" " | lp")) which also did not work. It is not that I want to use the pipe "| lp" but I just want to duplicate t= he same functionality to print the same kind of format. On Friday, June 21, 2013 12:13:46 PM UTC-7, Peter Dyballa wrote: > Am 21.06.2013 um 18:30 schrieb Rami A: >=20 >=20 >=20 > > But when trying to print I get this message: >=20 > > Searching for program: No such file or directory, mp | lp >=20 > >=20 >=20 > > It is possible that ps-lpr-command expects the path of the printing pro= gram, not a command. >=20 >=20 >=20 > The documentation says: >=20 >=20 >=20 > Documentation: >=20 > Name of program for printing a PostScript file. >=20 > =09 >=20 > On MS-DOS and MS-Windows systems, if the value is an empty string then E= macs >=20 > will write directly to the printer port named by `ps-printer-name'. The >=20 > programs `print' and `nprint' (the standard print programs on Windows NT= and >=20 > Novell Netware respectively) are handled specially, using `ps-printer-na= me' as >=20 > the destination for output; any other program is treated like `lpr' exce= pt that >=20 > an explicit filename is given as the last argument. >=20 >=20 >=20 > This is in accordance with the variable's name. It appears in ps-print.el= . Here is written in a comment: >=20 >=20 >=20 > `ps-lpr-command' must name a program that does not format the files it p= rints. >=20 >=20 >=20 > Because the ps-print and ps-spool commands already produce PostScript. So= you would have to use a simple print command. But lpr-command either does = not allow to use a pipe. GNU Emacs seems to search for an executable file n= ame with SPACEs and VERTICAL BAR (|). AFAIR mp allows to specify with -D or= -P a printer queue to which its output is being sent. Why can't you use mp= without ' | lpr'? And why aren't you experimenting in GNU Emacs with its o= wn customisation interface? It allows to apply new settings just for this s= ession =96 and to revert them! If a combination of settings finally works w= ell you can save them, from each of the open *customisation* buffers, into = your init file. >=20 >=20 >=20 > -- >=20 > Greetings >=20 >=20 >=20 > Pete >=20 >=20 >=20 > Real Time, adj.: >=20 > Here and now, as opposed to fake time, which only occurs there and then.