unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Brendan Halpin <brendan.halpin@ul.ie>
Subject: Re: alt-q whole buffer
Date: 10 Jan 2003 14:46:10 +0000	[thread overview]
Message-ID: <m38yxt83m5.fsf@wivenhoe.staff8.ul.ie> (raw)
In-Reply-To: mailman.141.1042208874.21513.help-gnu-emacs@gnu.org

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>

  parent reply	other threads:[~2003-01-10 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
2003-01-10 14:28 Francesco Scaglioni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m38yxt83m5.fsf@wivenhoe.staff8.ul.ie \
    --to=brendan.halpin@ul.ie \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).