Ignore coderef labels when evaluating a code block
commit9f47b37231b3c45afcd604a191e346200bd76e98
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 8 Aug 2016 12:04:11 +0000 (8 14:04 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 8 Aug 2016 12:04:11 +0000 (8 14:04 +0200)
tree5700cf64a3d17707e08ee2b2609e284257ee30db
parent2538ffae65717e4d6a714e1d29f25fb75b5b4d18
Ignore coderef labels when evaluating a code block

* lisp/ob-core.el (org-babel--normalize-body): New function.
(org-babel-get-src-block-info): Use new function.

* lisp/org-src.el (org-src-coderef-regexp): New function.
* lisp/ox.el (org-export-unravel-code): Use new function.

* testing/lisp/test-ob.el (test-ob/evaluate-body-with-coderefs): New
  test.
lisp/ob-core.el
lisp/org-src.el
lisp/ox.el
testing/lisp/test-ob.el