all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rami A <rami.ammari@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: postscript printing in emacs
Date: Fri, 21 Jun 2013 12:58:30 -0700 (PDT)	[thread overview]
Message-ID: <986867a3-8f37-4eeb-9406-5f48fed7c725@googlegroups.com> (raw)
In-Reply-To: <mailman.2158.1371842037.22516.help-gnu-emacs@gnu.org>

Hi again Pete,
Thanks for your response.

I am honestly not so proficient in emacs nor lisp.
I simply want the same format that 
mp -l -s "\!*" <\!* | lp 
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 the 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:
> 
> 
> 
> > 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.



  parent reply	other threads:[~2013-06-21 19:58 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
     [not found]     ` <mailman.2158.1371842037.22516.help-gnu-emacs@gnu.org>
2013-06-21 19:58       ` Rami A [this message]
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=986867a3-8f37-4eeb-9406-5f48fed7c725@googlegroups.com \
    --to=rami.ammari@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.