From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: why not auto-renumbering list ? Date: Mon, 09 Aug 2010 13:35:05 +0200 Message-ID: <87y6cg589i.wl%n.goaziou@gmail.com> References: <87vd7mfvcx.wl%n.goaziou@gmail.com> <85E5FB19-8C5A-4436-AB89-65760B565C55@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=33600 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiQdm-0001Pn-AC for emacs-orgmode@gnu.org; Mon, 09 Aug 2010 07:35:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiQdk-0002ed-OP for emacs-orgmode@gnu.org; Mon, 09 Aug 2010 07:35:38 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:39493) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiQdk-0002eP-KS for emacs-orgmode@gnu.org; Mon, 09 Aug 2010 07:35:36 -0400 Received: by wwi14 with SMTP id 14so11559357wwi.30 for ; Mon, 09 Aug 2010 04:35:35 -0700 (PDT) In-Reply-To: <85E5FB19-8C5A-4436-AB89-65760B565C55@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: Carsten Dominik Cc: Org Mode List Hello, >>>>> Carsten Dominik writes: > First, my apologies that I have so far not found the time to test > your improved list implementation. No worries, I needed that time anyways, as some internals have undergone big changes since then. I particularly think about the now (hopefully) working indent/outdent code, that was quite hairy to implement. > Have you had any testing feedback from anyone else so far? Not yet, unfortunately. > Have you tested it in all the export backends? Yes, on all major backends: HTML, LaTeX, ASCII and DocBook. Well, to be honest, in the case of DocBook, I only looked at the xml produced, and it seems valid to me. For this exporter, changes were very similar to those applied to the HTML one anyways. > I don't think anyone sets this to nil. But there is a use case for > this, if someone wants some strange specific numbering, > then it might be useful to allow turning it off. There is no harm > in having this possibility. There's always (in my branch): 2. [@start:2] I like 3. prime numbered 5. [@start:5] lists It sure is heavy on syntax, but benefit is that every exporter will reflect that unusual numbering. > While this sounds reasonable - it also unnecessary to me. > Why fix something that works? Because it is not consistent in the current implementation. Please have this test: Type the following list in an Org buffer, with `org-auto-renumber-ordered-lists' set to nil. 10. this is 1. first sub-item 2. second sub-item 11. a test 12. list Now, outdent first sub-item: top-level list gets renumbered, no matter what. Why? Worse: indentation of second sub-item is now wrong. Undo the indentation. Now cycle bullets of top level list once, to have parenthesis instead of dot after the number. There goes the numbering. And, again, exporters, except ASCII, will not take into consideration hand-numbered lists. This is not consistent either. As an intermediate solution, I can make `org-auto-renumber-ordered-lists' really block all renumbering attempt while still keeping indentation correct. It won't solve the exporter problem, though. I honestly don't think hand-numbering lists is a solution. I know Org is about simplicity, but [@start:xx] enforced numbers definitely fare better here. And use cases are, in my opinion, so infrequent that it will not cripple Org simplicity either. Regards, -- Nicolas