From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neon Absentius Newsgroups: gmane.emacs.help Subject: Re: Using autofill./ Date: Wed, 5 Oct 2005 00:18:41 +0000 Message-ID: <20051005001841.GB992@SDF.LONESTAR.ORG> References: <86hdbx427w.fsf@flame.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128471660 19048 80.91.229.2 (5 Oct 2005 00:21:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2005 00:21:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 02:20:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMx0M-0002Rv-2z for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Oct 2005 02:19:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMx0L-0000NT-FI for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Oct 2005 20:19:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMx09-0000NI-07 for help-gnu-emacs@gnu.org; Tue, 04 Oct 2005 20:19:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMx07-0000N6-Gi for help-gnu-emacs@gnu.org; Tue, 04 Oct 2005 20:19:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMx07-0000N3-Dy for help-gnu-emacs@gnu.org; Tue, 04 Oct 2005 20:19:15 -0400 Original-Received: from [192.94.73.21] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMx07-0004QF-3K for help-gnu-emacs@gnu.org; Tue, 04 Oct 2005 20:19:15 -0400 Original-Received: from sdf.lonestar.org (IDENT:absent@ukato.freeshell.org [192.94.73.7]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j950Ift0025590 for ; Wed, 5 Oct 2005 00:18:41 GMT Original-Received: (from absent@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j950IffA007235 for help-gnu-emacs@gnu.org; Wed, 5 Oct 2005 00:18:41 GMT Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Neon Absentius , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <86hdbx427w.fsf@flame.pc> User-Agent: Mutt/1.4.2.1i 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:29925 Archived-At: On Tue, Oct 04, 2005 at 08:32:51PM +0300, Giorgos Keramidas wrote: > Shashank Khanvilkar writes: > > However suppose I have a paragraph like the below: > > Background > > ---------- > > * This is a test message. This is a test message. This is a test > > message.This is a test message. This is a test message. This is a test > > message. This is a test message. This is a test message. > > * This is a second test message. This is a second test message. > > This is a second test message. This is a second test message. > > This is a second test message. > > > > How do i ask emacs to apply the new line width. > > I tried using but it makes the above lines as: > > > > Background ---------- * This is a test message. This is a test > > message. This is a test message. This is a test message. This > > is a test message. This is a test message. This is a test > > message. This is a test message. * This is a second test > > message. This is a second test message. This is a second > > test message. This is a second test message. This is a > > second test message. > > You can set a "fill prefix" of a couple of spaces. The M-q command > respects the value of fill-prefix. To set the value of fill-prefix > use the ``C-x .'' command. > This is great advice indeed. By following it you can get your example text after "M-q" to look something like this: Background ---------- * This is a test message. This is a test message. This is a test message.This is a test message. This is a test message. This is a test message. This is a test message. This is a test message. * This is a second test message. This is a second test message. This is a second test message. This is a second test message. This is a second test message. > you can set the fill-column to its new value (i.e. 40) and > refill the paragraph by hitting M-q just once: > > * This is a test message. This is a test > message. This is a test message.This is a > test message. This is a test message. This > is a test message. This is a test > message. This is a test message. ^^^^^^^^ > ^^^^^^^^ Before you start giving advice on filling don't you think that you should first fix yours? You might want to have a look at the variable "sentence-end-double-space" for example. -- Everyone is so overwhelmed by the hospitality. And so many of the people in the arena here, you know, were underprivileged anyway, so this--this (she chuckles slightly) is working very well for them. -- Barbara Bush, about the refugees from New Orleans.