Fix coderef handling in source blocks
commit3b3fc520aaaa5467f634219e16dfd5188532141d
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 28 Aug 2016 09:45:39 +0000 (28 11:45 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 28 Aug 2016 09:56:14 +0000 (28 11:56 +0200)
tree739b3f0efdfd09176a3dc71f79d71cec44085fcd
parent6b52bc6a2153a8c60d23d0915246a60d3ee37a52
Fix coderef handling in source blocks

* lisp/ob-core.el (org-babel--normalize-body): Do not remove coderef.
(org-babel-get-src-block-info): Add coderef label information, when
available, to the return value.
(org-babel-execute-src-block): Expand noweb and remove coderefs
non-destructively.
* lisp/ob-lob.el (org-babel-lob-get-info): Adapt to new INFO.

* testing/lisp/test-ob-exp.el (ob-export/body-with-coderef):
* testing/lisp/test-ob.el (test-ob/evaluate-body-with-coderefs): Add
  tests.

Reported-by: Thibault Marin <thibault.marin@gmx.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108888>
lisp/ob-core.el
lisp/ob-lob.el
testing/lisp/test-ob-exp.el
testing/lisp/test-ob.el