From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [PATCH] Alphabetical ordered lists Date: Tue, 26 Oct 2010 10:23:32 +0200 Message-ID: <4849E760-2A8F-49A4-9B29-347BD3645D1A@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> <87y69lqs8z.wl%n.goaziou@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42533 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAeol-00035W-50 for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAeoi-0001aJ-TV for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:23:38 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:47940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAeoi-0001Yv-MQ for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 04:23:36 -0400 Received: by ewy25 with SMTP id 25so2229871ewy.0 for ; Tue, 26 Oct 2010 01:23:35 -0700 (PDT) In-Reply-To: <87y69lqs8z.wl%n.goaziou@gmail.com> 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: Nicolas Goaziou Cc: Bernt Hansen , org-mode List , Jacob Mitchell On Oct 26, 2010, at 10:21 AM, Nicolas Goaziou wrote: > 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. Also, even when the alpha lists are turned off, typing a) and pressing M-RET will show that a) is seen as a list bullet. Thanks for your work, we are getting closer to an acceptable patch. - Carsten > > Regards, > > -- Nicolas - Carsten