From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Maggesi Subject: Re: obtain ob-template.el for Babel language extension Date: Fri, 11 Sep 2015 19:30:20 +0000 Message-ID: References: <20150910222354.743ce9f2@gauss> <20150911073700.356f5760@gauss> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11347e9eb3ec6a051f7dbfdc Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaU1t-0004ke-V1 for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 15:30:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaU1p-0000VH-F8 for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 15:30:37 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:36626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaU1o-0000Uu-Hf for emacs-orgmode@gnu.org; Fri, 11 Sep 2015 15:30:33 -0400 Received: by lanb10 with SMTP id b10so53971644lan.3 for ; Fri, 11 Sep 2015 12:30:31 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" , Joe Riel Cc: emacs-orgmode@gnu.org --001a11347e9eb3ec6a051f7dbfdc Content-Type: text/plain; charset=UTF-8 Hi, I also have a few questions about ob-template.el 1. Can we assume that the HEAD version of ob-template.el is adequate as a basis for an implementation which is compatible with org version 8.2.xx (i.e., with older versions of org-mode)? 2. In function org-babel-execute:template functions first, second, third, etc are used to extract values from processed-params. However, such function are not defined in elisp, (nth N processed-params) should be used instead. Is it correct? Also, it seems from other examples that the usual approach is to use assoc, e.g., (cdr (assoc ":session" params)). Are there enforced conventions that ensure the order in processed-params? 3. In function org-babel-expand-body:template we assume that vars is a list of pairs. However, it seems to me from some experiments that sometimes vars contains symbols. Am I wrong? Thank you, Marco Il giorno ven 11 set 2015 alle ore 18:03 Thomas S. Dye ha scritto: > Aloha Joe, > > Joe Riel writes: > > > On Thu, 10 Sep 2015 20:38:12 -1000 > > Thomas S. Dye wrote: > > > >> Aloha Joe, > >> > >> Joe Riel writes: > >> > >> > How do I get a copy of ob-template.el? > >> > The file can be viewed at > http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el > >> > however, that is an html file and not the elisp. > >> > I tried using git to clone http://orgmode.org/w/worg.git > >> > but that does not work. > >> > >> ~$ git clone git://orgmode.org/worg.git > >> > >> You should find ob-template.el in org-contrib/babel/ > > > > Thanks, that was helpful. Probably mention of that fact > > should be added to the languages.org file---currently it > > links directly to the html file which is less useful. > > Done. Thanks. > > > Are elisp files that implement the languages in worg? > > I found the *.org files that document them, but not their > > sources. > > The language source files are distributed with Org mode. You can find > them at lisp/ob-*.el. > > hth, > Tom > -- > Thomas S. Dye > http://www.tsdye.com > > --001a11347e9eb3ec6a051f7dbfdc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I also have a few que= stions about ob-template.el

1. Can we assume that the HEAD ver= sion of ob-template.el is adequate as a basis for an implementation which i= s compatible with org version 8.2.xx (i.e., with older versions of org-mode= )?

2. In function org-babel-execute:template functions first, = second, third, etc are used to extract values from processed-params. Howeve= r, such function are not defined in elisp, (nth N processed-params) should = be used instead.=C2=A0 Is it correct?
Also, it seems from other examples= that the usual approach is to use assoc, e.g.,=C2=A0 (cdr (assoc ":se= ssion" params)). Are there enforced conventions that ensure the order = in processed-params?

3. In function org-babel-expand-body= :template we assume that vars is a list of pairs.=C2=A0 However, it seems t= o me from some experiments that sometimes vars contains symbols. Am I wrong= ?

Thank you,
Marco

=
Il giorno ven 11 set 2015 a= lle ore 18:03 Thomas S. Dye <tsd@tsdye.com> ha scritto:
Aloha Joe,

Joe Riel <joer@san.= rr.com> writes:

> On Thu, 10 Sep 2015 20:38:12 -1000
> Thomas S. Dye <t= sd@tsdye.com> wrote:
>
>> Aloha Joe,
>>
>> Joe Riel <= joer@san.rr.com> writes:
>>
>> > How do I get a copy of ob-template.el?
>> > The file can be viewed at http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-= template.el
>> > however, that is an html file and not the elisp.
>> > I tried using git to clone http://orgmode.org/w/worg.git<= /a>
>> > but that does not work.
>>
>> ~$ git clone git://
orgmode.org/worg.git
>>
>> You should find ob-template.el in org-contrib/babel/
>
> Thanks, that was helpful.=C2=A0 Probably mention of that fact
> should be added to the languages.org file---currently it
> links directly to the html file which is less useful.

Done.=C2=A0 Thanks.

> Are elisp files that implement the languages in worg?
> I found the *.org files that document them, but not their
> sources.

The language source files are distributed with Org mode.=C2=A0 You can find=
them at lisp/ob-*.el.

hth,
Tom
--
Thomas S. Dye
http:= //www.tsdye.com

--001a11347e9eb3ec6a051f7dbfdc--