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 <t...@tsdye.com> ha
scritto:

> Aloha Joe,
>
> Joe Riel <j...@san.rr.com> writes:
>
> > On Thu, 10 Sep 2015 20:38:12 -1000
> > Thomas S. Dye <t...@tsdye.com> wrote:
> >
> >> Aloha Joe,
> >>
> >> Joe Riel <j...@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
> >> > 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
>
>

Reply via email to