all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* formatted output from lpr and lp with emacs
@ 2003-04-12 20:02 Wm. G. McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Wm. G. McGrath @ 2003-04-12 20:02 UTC (permalink / raw)


Hi all,

I'm having trouble getting emacs to produce formatted output.
I'm not sure that it's even an emacs problem.
I can get formatted output from a console by using:
pr -l62 -F -o10 filename.txt | lpr
This will give me indented text from a Lexmark Optra S printer.
But lpr -i 10 -w60 -p will not.

Under emacs I have set up lpr-switches to ("-i10" "-w60" "-p")
These options show up correctly under M-x list-options

However the output from M-x lpr-buffer remains unformatted.
How do I format with pr under emacs - or is that the problem?

Hoping for clue,


            bill

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: formatted output from lpr and lp with emacs
       [not found] <mailman.4489.1050177741.21513.help-gnu-emacs@gnu.org>
@ 2003-04-14 17:20 ` Jesper Harder
  0 siblings, 0 replies; 2+ messages in thread
From: Jesper Harder @ 2003-04-14 17:20 UTC (permalink / raw)


"Wm. G. McGrath" <wgm@vcn.bc.ca> writes:

> I'm having trouble getting emacs to produce formatted output.
> I'm not sure that it's even an emacs problem.
> I can get formatted output from a console by using:
> pr -l62 -F -o10 filename.txt | lpr
> This will give me indented text from a Lexmark Optra S printer.
> But lpr -i 10 -w60 -p will not.
>
> Under emacs I have set up lpr-switches to ("-i10" "-w60" "-p")
> These options show up correctly under M-x list-options
>
> However the output from M-x lpr-buffer remains unformatted.
> How do I format with pr under emacs - or is that the problem?

It'll work if you put the swithces for 'pr' in lpr-page-header-switches,
rather than lpr-swithces, i.e.

       (setq lpr-page-header-switches '("-F" "-l62" "-o10"))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-14 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-12 20:02 formatted output from lpr and lp with emacs Wm. G. McGrath
     [not found] <mailman.4489.1050177741.21513.help-gnu-emacs@gnu.org>
2003-04-14 17:20 ` Jesper Harder

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.