From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.help Subject: Re: word wrapping in a long document ?!? Date: Sun, 02 May 2010 19:10:12 +0100 Message-ID: References: <1272821780.1913.41.camel@CASE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272823849 7859 80.91.229.12 (2 May 2010 18:10:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 May 2010 18:10:49 +0000 (UTC) Cc: Emacs Help List To: William Case Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 02 20:10:44 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O8dcp-0003F6-Ob for geh-help-gnu-emacs@m.gmane.org; Sun, 02 May 2010 20:10:44 +0200 Original-Received: from localhost ([127.0.0.1]:42739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8dcp-0005Ks-7M for geh-help-gnu-emacs@m.gmane.org; Sun, 02 May 2010 14:10:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8dcO-0005Kn-V4 for help-gnu-emacs@gnu.org; Sun, 02 May 2010 14:10:17 -0400 Original-Received: from [140.186.70.92] (port=39133 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8dcO-0005Kf-03 for help-gnu-emacs@gnu.org; Sun, 02 May 2010 14:10:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8dcN-0001RJ-3S for help-gnu-emacs@gnu.org; Sun, 02 May 2010 14:10:15 -0400 Original-Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152]:45763) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8dcM-0001R3-St for help-gnu-emacs@gnu.org; Sun, 02 May 2010 14:10:15 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:46320) by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1O8dcK-0000bA-Il (Exim 4.70) (return-path ); Sun, 02 May 2010 19:10:12 +0100 In-Reply-To: <1272821780.1913.41.camel@CASE> (William Case's message of "Sun, 02 May 2010 13:36:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72881 Archived-At: On 2010-05-02 18:36 +0100, William Case wrote: > Hi; > > A question born out of frustration. I have searched the info manual > etc. Probably, mis-reading or mis-seeing. > > I have a long text document that I have opened in emacs. It is almost > completely filled with fringe indicators showing no word wrapping. I > have word-wrapping mode toggled on. I can make sentences wrap for a > paragraph by entering return at the end of each paragraph. > > Is there a command that will travel through the entire document and add > wrapping (remove fringe indicators) wherever needed. ,----[ C-h f fill-region RET ] | fill-region is an interactive compiled Lisp function in `fill.el'. | | It is bound to . | | (fill-region FROM TO &optional JUSTIFY NOSQUEEZE TO-EOP) | | Fill each of the paragraphs in the region. | A prefix arg means justify as well. | Ordinarily the variable `fill-column' controls the width. | | Noninteractively, the third argument JUSTIFY specifies which | kind of justification to do: `full', `left', `right', `center', | or `none' (equivalent to nil). A value of t means handle each | paragraph as specified by its text properties. | | The fourth arg NOSQUEEZE non-nil means to leave whitespace other | than line breaks untouched, and fifth arg TO-EOP non-nil means | to keep filling to the end of the paragraph (or next hard newline, | if variable `use-hard-newlines' is on). | | Return the fill-prefix used for filling the last paragraph. | | If `sentence-end-double-space' is non-nil, then period followed by one | space does not end a sentence, so don't break a line there. | | [back] `---- Leo