From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: postscript printing in emacs Date: Fri, 21 Jun 2013 21:13:46 +0200 Message-ID: <58E5DCDD-3D35-4908-B6F4-DB7163A4C411@Web.DE> References: <34388c9b-86fc-4f47-9a7b-1601f10c8ac0@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1371842051 7540 80.91.229.3 (21 Jun 2013 19:14:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 19:14:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rami A Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 21 21:14:12 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 1Uq6mh-00032H-LV for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 21:14:11 +0200 Original-Received: from localhost ([::1]:36492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq6mh-0002vJ-4c for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 15:14:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq6mQ-0002nO-QQ for help-gnu-emacs@gnu.org; Fri, 21 Jun 2013 15:13:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq6mM-0006PJ-I7 for help-gnu-emacs@gnu.org; Fri, 21 Jun 2013 15:13:54 -0400 Original-Received: from mout.web.de ([212.227.15.3]:50806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq6mM-0006Oa-6O for help-gnu-emacs@gnu.org; Fri, 21 Jun 2013 15:13:50 -0400 Original-Received: from sumac.fritz.box ([176.198.63.55]) by smtp.web.de (mrweb103) with ESMTPA (Nemesis) id 0LcgVn-1UPG8a1rmx-00k6xf; Fri, 21 Jun 2013 21:13:47 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1085) X-Provags-ID: V03:K0:EYxI2lKpaaxW3TGPXjDkcyrdecv7wRIAO85U0Zi5ivhEhf1cjDK 3zA+wo7C9stg+d3bl1nsFNAB+xbXu6Z1MajLji9ziahddPwEVO7rcTRuQ5wtbi/P5Beqj9W FCewTAOfj60LQSrfr5p7PRSrFGKt7wI0hotvpf2YHdvkzIMy05TRFEpgs1N0SXPUYzNbqGS 9cgypu8DLwNqTHxCwShLQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.3 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:91652 Archived-At: Am 21.06.2013 um 18:30 schrieb Rami A: > But when trying to print I get this message: > Searching for program: No such file or directory, mp | lp >=20 > It is possible that ps-lpr-command expects the path of the printing = program, not a command. The documentation says: Documentation: Name of program for printing a PostScript file. =09 On MS-DOS and MS-Windows systems, if the value is an empty = string then Emacs will write directly to the printer port named by = `ps-printer-name'. The programs `print' and `nprint' (the standard print programs on = Windows NT and Novell Netware respectively) are handled specially, using = `ps-printer-name' as the destination for output; any other program is treated like = `lpr' except that an explicit filename is given as the last argument. This is in accordance with the variable's name. It appears in = ps-print.el. Here is written in a comment: `ps-lpr-command' must name a program that does not format the = files it prints. 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 name 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 own customisation interface? It = allows to apply new settings just for this session =96 and to revert = them! If a combination of settings finally works well you can save them, = from each of the open *customisation* buffers, into your init file. -- Greetings Pete Real Time, adj.: Here and now, as opposed to fake time, which only occurs there = and then.