From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Request for opinions: [ANN] List improvement v.2o Date: Fri, 20 Aug 2010 02:56:54 +0200 Message-ID: <87zkwiyucp.wl%n.goaziou@gmail.com> References: <87ocdzw7gq.wl%n.goaziou@gmail.com> <17A93AC0-1896-481D-B2E9-E1DA5879A1D0@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=36829 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmFvH-0001Hy-F7 for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 20:57:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmFvG-0005Sq-5N for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 20:57:31 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:59504) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmFvG-0005Sg-12 for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 20:57:30 -0400 Received: by wyg36 with SMTP id 36so3085027wyg.0 for ; Thu, 19 Aug 2010 17:57:28 -0700 (PDT) In-Reply-To: <17A93AC0-1896-481D-B2E9-E1DA5879A1D0@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, I introduced in this branch a new variable, namely `org-list-ending-method', to allow fine-grained control on list endings. Here is its docstring: Determine where plain lists should end. Valid values are symbols 'regexp, 'indent or 'both. When set to 'regexp, Org will look into two variables, `org-empty-line-terminates-plain-lists' and the more general `org-list-end-regexp', to know what will end lists. This is the default value. When set to 'indent, indentation of the last non-blank line will determine if point is in a list. If that line is less indented than the previous item in the section, if any, list has ended. When set to 'both, each of the preceding methods must confirm that point is in a list. So, to sum it up, if you want to keep same behaviour as before, while still having bug fixes and most improvements, there are two cases: - if you had `org-empty-line-terminates-plain-lists' to nil, you only need to set `org-list-ending-method' to 'indent. - if you had `org-empty-line-terminates-plain-lists' to t, you need to keep it to t, and to set `org-list-ending-method' to 'both (because you still end your lists with indentation, but you allow a blank line, that is a regexp, to also end it). My advice is still to keep 'regexp (default value) and end lists with a well defined pattern, for two reasons: 1. It is faster. Indent method has to walk each line of the list to find its boundaries, while regexp method is a two searches trip, independently from the size of the list. 2. It is more consistent. With indent method, inserting a new line, indenting, then inserting some chars on the one hand, and inserting a new line, some chars, then indenting on the other hand won't give similar results at all. But now, there is at least the opportunity to not follow my advice! Regards, -- Nicolas