From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: Feature request (org-empty-line-terminates-plain-lists) Date: Tue, 24 Mar 2009 23:37:25 -0700 Message-ID: References: <877i2g53px.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmMkE-0001xr-HL for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 02:37:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmMkA-0001xE-1p for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 02:37:46 -0400 Received: from [199.232.76.173] (port=43375 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmMk9-0001xB-SY for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 02:37:41 -0400 Received: from main.gmane.org ([80.91.229.2]:60784 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LmMk9-0007Jj-Cc for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 02:37:41 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LmMk6-0007BU-46 for emacs-orgmode@gnu.org; Wed, 25 Mar 2009 06:37:38 +0000 Received: from adsl-76-192-233-190.dsl.pltn13.sbcglobal.net ([76.192.233.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Mar 2009 06:37:38 +0000 Received: from cbaoqiu by adsl-76-192-233-190.dsl.pltn13.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Mar 2009 06:37:38 +0000 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: emacs-orgmode@gnu.org Hi Carsten, Carsten Dominik writes: > Possible solutions: > > 1. Allow #+begin_example and friends to be indented and remove the same > amount of whitespace from all example lines as the #+begin line has. > This is possible, but would require a lot of work in the LaTeX > exporter. > It would also cause a lot of problems with the edit-source-code > stuff > with "C-c '", because we could then no longer use indentation > functionality while editing the examples. > > 2. Adapt the LaTeX exporter to work like the HTML exporter, ignoring > indentation of tables and example. The, introduce a special list > item like "- ___" to explicitly terminate a list if this should be > necessary. > > I welcome comments on this issue. Thanks for looking into this problem! Personally I would prefer option 1) if it does not require too much work. Supporting indented tables and #+begin_example etc. in Org-mode plain lists not only makes list structure look cleaner, but also fits well in Org-mode's powerful structure editing functionality (org-do-promote/demote already supports lot of automatic indentation today, including tables and ": ..." example lines.). Option 2) is a very good compromise, because it is cheap to implement, and, for *most* of the times, people do not need to use "- ___" in their lists. The only problem with option 2) is that, to terminate an ordered list that has N items, do we have to use something like "(N+1). ___"? Number N+1 here makes the list look a little bad. Also, "+ ___" and "* ___" may be required for list item starting with `+' or `*'. Baoqiu