From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Re: [PATCH] Alphabetical ordered lists Date: Tue, 26 Oct 2010 10:21:16 +0200 Message-ID: <87y69lqs8z.wl%n.goaziou@gmail.com> References: <87bp8o498o.fsf@gollum.intra.norang.ca> <393C5110-E4D3-4B36-8F4E-4F94B5AA0F93@gmail.com> <87k4m876g3.wl%n.goaziou@gmail.com> <87iq1r7k00.wl%n.goaziou@gmail.com> <747F5104-6B1C-43E8-BF42-883287B7E303@gmail.com> <87aan0789y.wl%n.goaziou@gmail.com> <874od127wq.wl%n.goaziou@gmail.com> <535BC60F-1310-47AD-BCD1-1C88822B852A@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=52432 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAerG-0004U4-T7 for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:26:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAemV-00018C-LB for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:21:20 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:44112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAemV-000187-Fm for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:21:19 -0400 Received: by wyf23 with SMTP id 23so4612807wyf.0 for ; Tue, 26 Oct 2010 01:21:18 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nathaniel Flath Cc: Bernt Hansen , Jacob Mitchell , org-mode List , Carsten Dominik Hello, >>>>> Nathaniel Flath writes: > I think I've fixed the issues brought up with this new patch. Please > let me know what you think. I've noticed a couple of glitches. First, you are using (> 28 (length struct)) to know when to replace letters by numbers. But (length struct) doesn't always match list length, so it will lead to errors when outdenting items. For example, try outdenting, with its subtree, the item marked with "<<<" in the list below: a) etsiun b) etsiun c) etsiun d) etisun e) etsiun f) etsiun g) etsiun h) etsiun i) etisun j) etsiun k) etsiun l) etsiun m) etsiun n) etsiun a) Outdent me and my children ! <<< a) tersiu b) etsiru c) estiur d) etsnriu e) etsiun f) etiune g) etuirsnet b) etsiun o) etsiun p) etsiun q) etsiun r) etsiun s) etsiun All the lists will be numbered although they could keep alphabetical bullets. Another (lesser) problem is coming from the regexp chosen for bullets, that is "[0-9A-Za-z]+". I would suggest something alike "\\(\\(?:[0-9]\\)+\\|[A-Za-z]\\)". At the moment, you can set counter to [@a4] and break you list when applying it. Regards, -- Nicolas