From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [Babel] now understands org-mode lists Date: Thu, 18 Nov 2010 06:12:19 +0530 Message-ID: <81tyjftqc4.fsf@gmail.com> References: <87r5ejwlkf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=51546 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIsaO-0001lp-Sg for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 19:42:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIsaN-0000pY-Mu for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 19:42:48 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:47985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIsaN-0000pU-GJ for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 19:42:47 -0500 Received: by pzk30 with SMTP id 30so510939pzk.0 for ; Wed, 17 Nov 2010 16:42:46 -0800 (PST) In-Reply-To: <87r5ejwlkf.fsf@gmail.com> (Eric Schulte's message of "Wed, 17 Nov 2010 16:57:04 -0700") 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: Eric Schulte Cc: Org Mode "Eric Schulte" writes: > Hi, > > I've just pushed up a small commit (including minimal documentation) > which teaches code blocks how to read and write Org-mode lists. The > following example should demonstrate the new behavior. > > > #+results: a-list > - org-mode > - and > - babel > > > #+source: a-list > #+begin_src emacs-lisp :var lst=a-list :results list > (reverse lst) > #+end_src > Why not call the underlying type an 'orglist'. One can for example think of orgpropeties etc etc. Btw, for the sake of illustration, how would one convert a numbered list to an alphabetical list or an unordered list. Convert some thing like 1. One 1. OneOne 3. Two 4. Three to - One - One - Two - Three or 1. One 1.1 OneOne 2. Two 3. Three C-c C-c on a list currently renumbers the list which I find quite useful. May be there is a way to 'rebind' it so that it not only renumbers but renumbers with a different style (that the user is comfortable with). Think 'replace-region' for example. Jambunathan K. > > This is just a quick first pass at this functionality, there are still > some unanswered questions, such as if and how code blocks should > differentiate between ordered and unordered lists (ordered get an index > for each item?), how nested lists should be represented etc... > > Best -- Eric > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode