Bugfix: not assuming that we're in a source block when inserting result.
commit4f15280631744019c3696751b4e16b155fe4bf7d
authorDan Davison <davison@stats.ox.ac.uk>
Fri, 17 Jul 2009 04:18:03 +0000 (17 00:18 -0400)
committerDan Davison <davison@stats.ox.ac.uk>
Fri, 17 Jul 2009 04:18:03 +0000 (17 00:18 -0400)
tree2fe47d8492a21ddd0bbf459b33cf7e1cdf038b95
parentcdc46b8b74dd7eed00b65f8686564e4d0ac8a7de
Bugfix: not assuming that we're in a source block when inserting result.

The o-b-insert-result code was assuming that we were in a source
block, where it could find the head, etc. However there are two
situations when this is not true LoB calls (although they can't output
results to buffer in this branch, they can in branch 'results'), and
org-babel-exp (which calls o-b-insert-result in an empty temp buffer).
lisp/org-babel.el