From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Babel] now understands org-mode lists Date: Wed, 17 Nov 2010 18:14:52 -0700 Message-ID: <87d3q3h1b2.fsf@gmail.com> References: <87r5ejwlkf.fsf@gmail.com> <81tyjftqc4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=41749 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PItE6-0000xH-ND for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 20:23:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PItE5-0007YM-Me for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 20:23:50 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:62837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PItE5-0007YC-Hu for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 20:23:49 -0500 Received: by pzk30 with SMTP id 30so518413pzk.0 for ; Wed, 17 Nov 2010 17:23:48 -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: Jambunathan K Cc: Org Mode Jambunathan K writes: > "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. > I was just thinking that list is simpler and shorter, we need not prefix everything in the Org domain with the prefix org. Is there a regular list that you are concerned this name will conflate with. > > 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. > I haven't thought of how these `meta' or `style' properties of lists should be represented, I am hoping that some good ideas for this will come from the list (the mailing list). The most obvious solution seems to be a new header argument ":list-style" or somesuch, which could take options for all org-mode list style types. The backend uses the `org-list-to-generic' function which already exists inside of Org-mode and has a great deal of options so ideally any solution will serve as a thin layer to pass options directly from the user through to this function. The main question is "what's the best syntax". Thanks -- Eric > > 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