[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adjusting page length in "Print buffer" command
From: |
Eli Zaretskii |
Subject: |
Re: Adjusting page length in "Print buffer" command |
Date: |
Sat, 15 Jan 2005 18:59:49 +0200 |
> From: Tim McNamara <timmcn@bitstream.net>
> Date: Sat, 15 Jan 2005 09:57:29 -0600
>
> > Please see if any of the options mentioned in the doc string of
> > print-buffer help you get what you want:
> >
> > print-buffer is an interactive autoloaded Lisp function in
> > `lpr'. It is bound to <menu-bar> <file> <print-buffer>.
> > (print-buffer)
> >
> > Paginate and print buffer contents.
> >
> > The variable `lpr-headers-switches' controls how to paginate.
> > If it is nil (the default), we run the `pr' program (or whatever
> > program `lpr-page-header-program' specifies) to paginate.
> > `lpr-page-header-switches' specifies the switches for that
> > program.
> >
> > Otherwise, the switches in `lpr-headers-switches' are used in
> > the print command itself; we expect them to request pagination.
> >
> > See the variables `lpr-switches' and `lpr-command' for further
> > customization of the printer command.
>
> I couldn't find this in Info, obviously looking in the wrong places.
> Where is it?
As I said, it's in the doc string of the print-buffer command. Type
"C-h f print-buffer RET", and you will see it. In Emacs, every
function and every variable have their documentation that is built
right into Emacs.
> So, I should be able to modify "lpr-headers-switches" to request a
> different pagination, from what your post suggests- in effect, to call
> "pr -l _lines_" when "print-buffer" is called?
Yes.
> Counting lines on the
> printed pages, it looks like I need to modify the pagination to a
> total of 50 or 51 lines. Can I modify "lpr-headers-switches" to do
> this? Is this done directly by modifying the command or is this done
> in my .emacs?
The latter.
> Is there a way to do this simply via "Customize Emacs" that I have
> overlooked?
Thru "Customize Emacs" should be possible. Did it fail for you?
Another, a bit shorter, way is by "M-x customize-variable RET". Type
"lpr-headers-switches" at the prompt, and then modify the value in the
Custom buffer and use the displayed buttons to save it for this and
future sessions.
- Adjusting page length in "Print buffer" command, Tim McNamara, 2005/01/14
- Re: Adjusting page length in "Print buffer" command, Sébastien Kirche, 2005/01/14
- Re: Adjusting page length in "Print buffer" command, Sébastien Kirche, 2005/01/14
- Re: Adjusting page length in "Print buffer" command, Tim McNamara, 2005/01/14
- Re: Adjusting page length in "Print buffer" command, Eli Zaretskii, 2005/01/15
- Message not available
- Re: Adjusting page length in "Print buffer" command, Tim McNamara, 2005/01/15
- Re: Adjusting page length in "Print buffer" command,
Eli Zaretskii <=
- Message not available
- Re: Adjusting page length in "Print buffer" command, Tim McNamara, 2005/01/15
- Re: Adjusting page length in "Print buffer" command, Eli Zaretskii, 2005/01/16
- Message not available
- Re: Adjusting page length in "Print buffer" command, Tim McNamara, 2005/01/16
- Re: Adjusting page length in "Print buffer" command, Eli Zaretskii, 2005/01/17
- Message not available
- Re: Adjusting page length in "Print buffer" command, Tim McNamara, 2005/01/17
- Re: Adjusting page length in "Print buffer" command, Peter Dyballa, 2005/01/17
- Message not available
- Re: Adjusting page length in "Print buffer" command, Tim McNamara, 2005/01/17