From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [RFC]: Uniform indentation for lists Date: Tue, 25 Jun 2013 17:33:38 +0200 Message-ID: <983E737D-C875-478A-A78A-A2EAEEFBBF78@gmail.com> References: <87hagntblh.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrVFf-0004eR-5y for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 11:33:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrVFa-0007OA-8X for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 11:33:51 -0400 Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]:54292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrVFa-0007Nk-2W for emacs-orgmode@gnu.org; Tue, 25 Jun 2013 11:33:46 -0400 Received: by mail-ea0-f171.google.com with SMTP id m14so6917157eaj.2 for ; Tue, 25 Jun 2013 08:33:44 -0700 (PDT) In-Reply-To: <87hagntblh.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org Hi, the indentation rules for lists in Org are ancient, and I don't thing we want to break so many existing files. And we certainly cannot change = the numbered bullets. The only thing I would accept is an option to enforce 3 space = indentation on TAB, but the parser must read 2 space indentation as well. And, as Savayu points out, lists longer than 9 items will always be an issue. - Carsten On 24.6.2013, at 23:58, Jambunathan K wrote: >=20 > This request is a result of adding Org-mode support to Oddmuse. (See = my > earlier mail that introduces Orgmuse). >=20 > When lists are "normalized", the sub-lists are introduced by varying > amout of spaces depending on the type of the parent list. It's 3 = spaces > if the parent is numbered and 2 spaces if the parent is bulleted. >=20 > 1. One > 2. Two > - Bullet One > - Bullet Two > 1. One > 2. Two >=20 > Oddmuse wiki and possibly Usemod (and even other Wiki engines) do a > linear scan of text (much like what the old org-html.el used to do) = and > emits HTML by looking at thing at point. Having the list items > introduced by varying amout of spaces makes the parser "more" = stateful. >=20 > I was wondering whether there would be some interest in=20 >=20 > 1) To eliminate the separators - "." or ")" - in the numbered list=20 > 2) Enhance the list repair routine so that it will alway indent by 3 = spaces. >=20 > With (1) above, the earlier list becomes, >=20 > 1 One > 2 Two > - Bullet One > - Bullet Two > 1 One > 2 Two >=20 > This gives a uniform indentation of 2 spaces. >=20 >=20 > With (2) or (3), the earlier list becomes, >=20 > 1. One > 2. Two > - Bullet One > - Bullet Two > 1. One > 2. Two >=20 > This gives an indentation of 3 spaces. The 3 spaces could either be > mandated by the canonical Org-markup spec or it could be ensured by = the > author of Org document himself (by using the proposed new repair = option) >=20