Enabling LoB to put results in buffer, and slowly moving towards more
commit44adc98505d3cfa4840eb062df1bd5bda2708577
authorDan Davison <davison@stats.ox.ac.uk>
Sat, 11 Jul 2009 02:59:10 +0000 (10 22:59 -0400)
committerDan Davison <davison@stats.ox.ac.uk>
Sat, 11 Jul 2009 02:59:10 +0000 (10 22:59 -0400)
tree4c29b4ff34f5ebe694d14d6ba1d338a6a77828d7
parent42fe3144b7f6e7bb9e7f6c9398162cb49c83604c
Enabling LoB to put results in buffer, and slowly moving towards more
unified concept of function calls.

Previously LoB calls were not able to produce results in the
buffer. These changes go some way to allowing them to do that. [There
are still some bugs to deal with]. That meant changing org-babel.el so
that there is a notion of the `source block name' for a LoB line, in
order to construct a #+resname (currently I've made the name the same
as the function call).

I'm also slowly moving towards unifying the notion of `function calls'
a bit more: I've changed the org-babel-lob-one-liner-regexp so that
instead of a monolithic match it now matches first the function name,
and second the function arguments in
parentheses. org-babel-lob-get-info makes that match, and although it
still concatenates them and returns the string, the two elements can
be accessed immediately afterwards using match-string. So that
situation is very similar to org-babel-get-src-block-name, whose
job (in this branch) is also to parse the function *name* and the
function *arguments*. In a few places in the code (esp. function
names), I think the word `info' should be replaced with `call' or
`function call', which I believe more accurately indicates what the
`info' is: a function definition, together with bound
arguments/references.

The function call syntax, i.e. function-name(arg1=ref1), originally
introduced for references (and thereby in LoB), and which I'm
proposing we use throughout, raises the question of default arguments,
and those being over-ridden by supplied arguments, as in e.g. python,
and R.
library-of-babel.org
lisp/org-babel-lob.el
lisp/org-babel.el