[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: formatted output from lpr and lp with emacs
From: |
Jesper Harder |
Subject: |
Re: formatted output from lpr and lp with emacs |
Date: |
Mon, 14 Apr 2003 19:20:37 +0200 |
User-agent: |
Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux) |
"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"))