help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alt-q whole buffer


From: Brendan Halpin
Subject: Re: alt-q whole buffer
Date: 10 Jan 2003 14:46:10 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Francesco Scaglioni <fgs@epulse.net> writes:

> Hi,
> 
> I have a text file of 213K that is not wordwrapped in that every
> paragraph fills the entire width of the emacs window.  Is there some
> way to avoid having to M-q every paragraph?  I tried selecting whole
> buffer then M-q but that only affected last paragraph.  It doesn't
> seem to contain any definable end of line markers that I can search
> and replace.

Go to the start and evaluate the following:

(while (not (eobp)) 
        (fill-paragraph nil)
        (forward-paragraph))

Brendan
-- 
Brendan Halpin,  Deptartment of Sociology,  University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-390476;  Room F2-025 x 3147
<mailto:brendan.halpin@ul.ie>        <http://wivenhoe.staff8.ul.ie/~brendan>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]