TODO Internals - non user-visible changes

  • State "TODO" from "" 2010-03-20 Sat 12:34
[ ] org-babel-LANG-evaluate variable name
In some languages the argument list includes BUFFER but we then refer to SESSION in the function.
[ ] split org-babel-LANG-evaluate into session and non-session

Like clojure does.

[ ] tangle to buffers and write to file at end
Now that we don't use append-to-file (see 73d8e5768570d62e79f19b117b599f668b6abc17), it would be more efficient to append the tangled output to buffers, and ultimately write the buffers to file and kill the buffers. I didn't implement that, as it required a fair bit of kessing about with org-babel-tangle, but if someone has time it would be nice. The efficiency gain will presumably be considerable for remote tangle files.
[ ] Internals - Code sharing with org-babel-execute-buffer

Functions like org-babel-pop-to-session have to go through some initial variable binding which partially overlaps with the variable bindings in org-babel-execute-src-block. If possible, it would be nice to abstract the common set-up into shared code. For example, I recently added default-directory in the let-binding of o-b-execute-src-block, and subsequently realised that it also needed to be added to o-b-pop-to-session.

[ ] Make docstrings obey emacs rules
First descriptive sentence on own line less than 80 chars (or something like that).
[ ] Avoid multiple calls to org-babel-where-is-src-block-head

the posiion of head can be stored in the 'info' data structure. This would entail a bit of messing about as it would have to be one of the earlier elements in the list, thus pushing the others along by one.