From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Dehmann Newsgroups: gmane.emacs.help Subject: Re: fill-paragraph: multi-level indentations / enumerations? Date: Thu, 5 Feb 2009 19:02:02 -0800 (PST) Organization: http://groups.google.com Message-ID: <49b9c343-2cec-4f30-a95a-cfc8fa6e5eb4@i24g2000prf.googlegroups.com> References: <8990a4ca-9688-43b8-9b51-cfc09ab9ff46@k9g2000vbl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1233940136 1520 80.91.229.12 (6 Feb 2009 17:08:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2009 17:08:56 +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 18:10:11 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 1LVUD8-0005qs-3w for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2009 18:09:50 +0100 Original-Received: from localhost ([127.0.0.1]:36022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVUBo-0000en-Qq for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2009 12:08:28 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i24g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-NNTP-Posting-Host: 96.234.239.43 Original-X-Trace: posting.google.com 1233889324 14084 127.0.0.1 (6 Feb 2009 03:02:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 6 Feb 2009 03:02:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i24g2000prf.googlegroups.com; posting-host=96.234.239.43; posting-account=S9AQIAoAAAB4GxI-BGAtHONr33Ny0Xlu User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166630 X-Mailman-Approved-At: Fri, 06 Feb 2009 11:38:49 -0500 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:61955 Archived-At: On Feb 5, 9:25=A0pm, 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 > > =A0 =A0 blah blah blah > > =A0 =A0 (1.1) blah blah blah blah blah blah blah blah blah blah blah bl= ah > > blah blah > > > and fill-paragraph will change it to this: > > (1) blah blah blah blah blah blah blah blah blah blah blah blah blah > > =A0 =A0 blah blah blah (1.1) blah blah blah blah blah blah blah blah bl= ah > > =A0 =A0 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 > > =A0 =A0 blah blah blah > > =A0 =A0 (1.1) blah blah blah blah blah blah blah blah blah blah blah bl= ah > > blah > > =A0 =A0 =A0 =A0 =A0 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. 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