From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Micha Feigin Newsgroups: gmane.emacs.help Subject: Re: Looking for (fill-paragraph) Like Functions Date: Wed, 29 Nov 2006 16:35:07 +0200 Message-ID: <20061129163507.0ebf519d@litshi.luna.local> References: <87d576msui.fsf@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164811187 21137 80.91.229.2 (29 Nov 2006 14:39:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 14:39:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 29 15:39:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpQb4-0008OL-Q5 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2006 15:39:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpQb4-0002Vw-9m for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Nov 2006 09:39:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpQaq-0002TF-EE for help-gnu-emacs@gnu.org; Wed, 29 Nov 2006 09:39:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpQan-0002Pr-Dk for help-gnu-emacs@gnu.org; Wed, 29 Nov 2006 09:39:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpQan-0002Ph-A2 for help-gnu-emacs@gnu.org; Wed, 29 Nov 2006 09:39:21 -0500 Original-Received: from [132.66.16.26] (helo=doar.tau.ac.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GpQan-0002Ys-1F for help-gnu-emacs@gnu.org; Wed, 29 Nov 2006 09:39:21 -0500 Original-Received: from litshi.luna.local (math201-1.tau.ac.il [132.66.40.199]) by doar.tau.ac.il (Postfix) with ESMTP id 036ADBEEF for ; Wed, 29 Nov 2006 16:36:07 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <87d576msui.fsf@localhost.localdomain> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) 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:39094 Archived-At: On Wed, 29 Nov 2006 10:48:23 GMT Passer By wrote: > > > > My first learned function and loved function of emacs was the M-q but > there are cases where M-q doesn't do exactly what i want and i would > like to make an improved version or find one somewhere. > > > Here is an example of what i would want my improved (fill-paragraph) > to do. > > > 1) this is a sentence > 2) this is another sentence in a list > 3) this is a sentence is long i would like to hit M-q now but emacs will not > just rap this line it will rap all the lines and that makes me mad 4) this is > another line M-q here would be good if it would make all the lines nice up to > 1) > The problem is with how do you recognize the end of a paragraph? You can't use the end of line symbol as that is the same symbol that is used to break a line in the middle of the paragraph and there is no end of paragraph symbol for text files (AFAIK, maybe unicode has something). The solution is to use the latex syntax and break lines with enter and paragraph with an empty line. I think that that will solve your problem. i.e: This is paragraph one second line of paragraph one This is paragraph two. > > I would like my M-q to work for any "bulleted" list like this > > so the above when My M-q'ed any place in the list would go to > > 1) this is a sentence > 2) this is another sentence in a list > 3) this is a sentence is long i would like to hit M-q now but emacs > will not just rap this line it will rap all the lines and that > makes me mad > 4) this is another line M-q here would be good if it would make all > the lines nice up to 1) > > instead of this > > > 1) this is a sentence 2) this is another sentence in a list 3) this is > a sentence is long i would like to hit M-q now but emacs will not just > rap this line it will rap all the lines and that makes me mad 4) this > is another line M-q here would be good if it would make all the lines > nice up to 1) > > > Thanks! > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > > +++++++++++++++++++++++++++++++++++++++++++ > This Mail Was Scanned By Mail-seCure System > at the Tel-Aviv University CC. >