From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Rami A <rami.ammari@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: postscript printing in emacs
Date: Fri, 21 Jun 2013 21:13:46 +0200 [thread overview]
Message-ID: <58E5DCDD-3D35-4908-B6F4-DB7163A4C411@Web.DE> (raw)
In-Reply-To: <eb94a13c-0c6e-4ccd-9a62-35a1b4dc6366@googlegroups.com>
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
>
> 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.
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 – 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.
next prev parent reply other threads:[~2013-06-21 19:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 23:46 postscript printing in emacs Rami A
2013-06-20 9:40 ` Peter Dyballa
2013-06-20 13:21 ` Drew Adams
[not found] ` <mailman.2067.1371721274.22516.help-gnu-emacs@gnu.org>
2013-06-21 16:30 ` Rami A
2013-06-21 19:13 ` Peter Dyballa [this message]
[not found] ` <mailman.2158.1371842037.22516.help-gnu-emacs@gnu.org>
2013-06-21 19:58 ` Rami A
2013-06-21 20:21 ` Peter Dyballa
[not found] ` <mailman.2164.1371846141.22516.help-gnu-emacs@gnu.org>
2013-06-21 21:16 ` Rami A
2013-06-21 21:49 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58E5DCDD-3D35-4908-B6F4-DB7163A4C411@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=rami.ammari@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.