From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Lists made stronger: lists within lists Date: Sun, 12 Dec 2010 18:35:31 +0100 Message-ID: <87bp4qc2sc.wl%n.goaziou@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=47095 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRppl-0005nr-AK for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 12:35:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRppj-0002xY-TF for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 12:35:41 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:36332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRppj-0002vP-OD for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 12:35:39 -0500 Received: by wwb17 with SMTP id 17so5464333wwb.30 for ; Sun, 12 Dec 2010 09:35:38 -0800 (PST) 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 Hello, As I had promised it here a few days ago, I just pushed a testing branch allowing to have lists in blocks, drawers and inline tasks. These constructs can themselves be located in lists. Basically, lists are allowed in every block but "src", "example" and "verse". Inline tasks will not end lists, even though they start at column 0. Exporters should understand quite intricate situations. Here is an example of this: ----- * Let's stress-test lists - a list 1. Sub-item with both example and quote blocks #+begin_example + here is a false list #+end_example #+begin_quote 1. followed by a real list 2. of two items 1. and a sub-item And some other text afterwards. #+end_quote 2. Sub-item with src block #+begin_src emacs-lisp (message "Am I appearing?") #+end_src 3. Sub-item with a drawer :LOGBOOK: * One * One dot one * One dot two :END: - and now some centering #+begin_center 1. One 2. Two #+end_center The end. ----- This is not a trivial patch, so it needs careful testing (and maybe some re-factoring). The branch can be found at: git://github.com/ngz/org-mode-lists.git recursive-lists I still think inline tasks shouldn't be included in lists, but for now, let's see it as a proof of concept. I can always remove it later if it is "too much". The same idea applies to this whole patch: if it is not really needed, it will not reach master branch. Regards, -- Nicolas