From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@ameritech.net Newsgroups: gmane.emacs.help Subject: Re: Setting lines to print per page.... Date: Sat, 18 Jan 2003 17:49:14 -0500 (EST) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84el7a5yd1.fsf@lucy.is.informatik.uni-duisburg.de> Reply-To: gebser@ameritech.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1042930139 9886 80.91.224.249 (18 Jan 2003 22:48:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 18 Jan 2003 22:48:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org 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 18a1lp-0002Z4-00 for ; Sat, 18 Jan 2003 23:48:57 +0100 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 18a1mE-0005ZU-01 for gnu-help-gnu-emacs@m.gmane.org; Sat, 18 Jan 2003 17:49:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18a1m4-0005ZM-00 for help-gnu-emacs@gnu.org; Sat, 18 Jan 2003 17:49:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18a1m2-0005Z5-00 for help-gnu-emacs@gnu.org; Sat, 18 Jan 2003 17:49:11 -0500 Original-Received: from mailhost1-bcvloh.bcvloh.ameritech.net ([66.73.20.42] helo=mailhost.bcv1.ameritech.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18a1m2-0005Yz-00 for help-gnu-emacs@gnu.org; Sat, 18 Jan 2003 17:49:10 -0500 Original-Received: from mailhost.bcv1.ameritech.net by mailhost.bcv1.ameritech.net convert rfc822-to-8bit; Sat, 18 Jan 2003 17:49:10 -0500 Original-Received: from heidegger.mousecar.net ([65.43.211.137]) by mailhost.bcv1.ameritech.net (InterMail vM.4.01.02.17 201-229-119) with ESMTP <20030118224909.UXXO14902.mailhost.bcv1.ameritech.net@heidegger.mousecar.net> for ; Sat, 18 Jan 2003 17:49:09 -0500 Original-Newsgroups: gnu.emacs.help In-Reply-To: <84el7a5yd1.fsf@lucy.is.informatik.uni-duisburg.de> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:5681 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5681 Put this in your .emacs: (custom-set-variables '(lpr-page-header-program "pr --page-width=3D84 --indent=3D5")) Depending on the size of the characters you configured and what size margins you want, you may need to adjust the numbers. = Do "man pr" for more options to include above within the quotes ("). hth, ken Kai Gro=DFjohann at 15:25 (UTC+0100) on Sat, 18 Jan 2003 said: =3D "simondo" writes: =3D = =3D > I'm using emacs as an interface for querying MySQL databases, and w= ant to =3D > print out the result sets. But no matter what I set the characters= /inch =3D > in the X Printing Panel, the same number of lines are printed per p= age. = =3D > The characters are smaller, there's just more space at the end of t= he =3D > page. This isn't using the ps pretty printing option of emacs btw.= I've =3D > waded through a sea of documentation and goggled, but I'm new to em= acs so =3D > it's all very unfamiliar and gets confusing fast. I think it's pri= nting =3D > through lpr and then cups if that's any help. =3D = =3D I think that print-buffer might print via lpr-page-header-program. I= =3D think that lpr-buffer doesn't do that. =3D = =3D So does it help to say M-x lpr-buffer RET? =3D =