From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.help Subject: Re: fill-paragraph: multi-level indentations / enumerations? Date: Fri, 06 Feb 2009 06:07:03 +0100 Organization: FH-Trier Message-ID: <1233896885.710017@arno.fh-trier.de> References: <8990a4ca-9688-43b8-9b51-cfc09ab9ff46@k9g2000vbl.googlegroups.com> <49b9c343-2cec-4f30-a95a-cfc8fa6e5eb4@i24g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233932026 3402 80.91.229.12 (6 Feb 2009 14:53:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2009 14:53:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 06 15:55:00 2009 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.50) id 1LVS6Y-00077D-DC for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2009 15:54:54 +0100 Original-Received: from localhost ([127.0.0.1]:39033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVS5E-0000PJ-SQ for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2009 09:53:32 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.arglkargh.de!news.n-ix.net!news.belwue.de!news.uni-kl.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: 143-93-54-11.arno.fh-trier.de Original-X-Trace: news.uni-kl.de 1233896958 3095 143.93.54.11 (6 Feb 2009 05:09:18 GMT) Original-X-Complaints-To: usenet@news.uni-kl.de Original-NNTP-Posting-Date: Fri, 6 Feb 2009 05:09:18 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018) In-Reply-To: <49b9c343-2cec-4f30-a95a-cfc8fa6e5eb4@i24g2000prf.googlegroups.com> Cache-Post-Path: arno.fh-trier.de!unknown@dslb-088-068-200-025.pools.arcor-ip.net X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Original-Xref: news.stanford.edu gnu.emacs.help:166634 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:61946 Archived-At: Markus Dehmann wrote: > On Feb 5, 9:25 pm, Xah Lee wrote: >> On Feb 5, 8:32 am, Markus Dehmann wrote: >> >>> The fill-paragraph function in my emacs 21.4.1 (on linux) is missing >>> some basic understanding of multi-level indentations or enumerations. >>> If I am in text-mode and I type >>> (1) blah blah blah blah blah blah blah blah blah blah blah blah blah >>> blah blah blah >>> (1.1) blah blah blah blah blah blah blah blah blah blah blah blah >>> blah blah >>> and fill-paragraph will change it to this: >>> (1) blah blah blah blah blah blah blah blah blah blah blah blah blah >>> blah blah blah (1.1) blah blah blah blah blah blah blah blah blah >>> blah blah blah blah blah >>> But of course I want the correct indentation instead: >>> (1) blah blah blah blah blah blah blah blah blah blah blah blah blah >>> blah blah blah >>> (1.1) blah blah blah blah blah blah blah blah blah blah blah blah >>> blah >>> blah >>> How can I do that? Can I modify the fill-paragraph function so that it >>> understands hierarchical indentations? >> Basically no, you'll have to write your own, which should be very >> easy. Prob 30 min to 1h for me. >> >>> My emacs version on the Mac >>> does it >> aquaemacs or carbon emacs? what version? I can't reproduce it. > > Emacs, 22.2.50.1, Carbon Version 1.6.0 > > Well actually, it *almost* works on the Mac version: It works fine > with stars, or with (1), (2), etc: > > (1) blah blah blah blah blah blah blah blah > blah blah blah blah blah blah blah > (2) foo foo foo foo foo foo foo foo foo > foo foo foo foo foo foo foo > > The indentation is correct here on my Mac. But my linux emacs does the > stupid thing instead. > > With things like (1.1), which I used in my original post, my Mac Emacs > version fails as well. > Your Mac Emacs has probably filladapt-mode installed and activated. -ap > So, if I like the fill-paragraph behavior on my Mac Emacs better, can > I just try to locate a fill-paragraph.el file and copy it over to my > linux emacs? Or how should I proceed? > > Thanks > Markus