From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: fill-paragraph: multi-level indentations / enumerations? Date: Thu, 5 Feb 2009 18:25:35 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <8990a4ca-9688-43b8-9b51-cfc09ab9ff46@k9g2000vbl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1233939998 940 80.91.229.12 (6 Feb 2009 17:06:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2009 17:06:38 +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:07:45 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 1LVUB5-0004uG-1P for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2009 18:07:43 +0100 Original-Received: from localhost ([127.0.0.1]:39626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVU9l-00069j-UN for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2009 12:06:21 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f40g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1233887136 18564 127.0.0.1 (6 Feb 2009 02:25:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 6 Feb 2009 02:25:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f40g2000pri.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166628 X-Mailman-Approved-At: Fri, 06 Feb 2009 11:39: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:61953 Archived-At: 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. Xah =E2=88=91 http://xahlee.org/ =E2=98=84