* alt-q whole buffer
@ 2003-01-10 14:28 Francesco Scaglioni
0 siblings, 0 replies; 3+ messages in thread
From: Francesco Scaglioni @ 2003-01-10 14:28 UTC (permalink / raw)
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.
TIA
Francesco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: alt-q whole buffer
[not found] <mailman.141.1042208874.21513.help-gnu-emacs@gnu.org>
@ 2003-01-10 14:40 ` D. Goel
2003-01-10 14:46 ` Brendan Halpin
1 sibling, 0 replies; 3+ messages in thread
From: D. Goel @ 2003-01-10 14:40 UTC (permalink / raw)
> 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.
C-x h (to mark whole buffeR)
M-x fill-region
:)
DG http://deego.gnufans.org/~deego/
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: alt-q whole buffer
[not found] <mailman.141.1042208874.21513.help-gnu-emacs@gnu.org>
2003-01-10 14:40 ` alt-q whole buffer D. Goel
@ 2003-01-10 14:46 ` Brendan Halpin
1 sibling, 0 replies; 3+ messages in thread
From: Brendan Halpin @ 2003-01-10 14:46 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-10 14:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.141.1042208874.21513.help-gnu-emacs@gnu.org>
2003-01-10 14:40 ` alt-q whole buffer D. Goel
2003-01-10 14:46 ` Brendan Halpin
2003-01-10 14:28 Francesco Scaglioni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).