From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: formatted output from lpr and lp with emacs Date: Mon, 14 Apr 2003 19:20:37 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050341486 4527 80.91.224.249 (14 Apr 2003 17:31:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2003 17:31:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 14 19:31:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1957ng-0001Ai-00 for ; Mon, 14 Apr 2003 19:31:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1957mm-0007wz-01 for gnu-help-gnu-emacs@m.gmane.org; Mon, 14 Apr 2003 13:30:28 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!newspump.monmouth.com!newspeer.monmouth.com!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8466 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8466 "Wm. G. McGrath" 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"))