ob: Ignore data in COMMENTed headings
commit02c78501472fba94f8cf5a3d218b5c8845b28827
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 5 Nov 2015 14:44:22 +0000 (5 15:44 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 5 Nov 2015 14:44:22 +0000 (5 15:44 +0100)
tree59f56d0c29f4255ab771e628b3f220c618ddccd1
parent77fa0018b8511272d74c2d958e779d95e2be4455
ob: Ignore data in COMMENTed headings

* lisp/ob-core.el (org-babel-read-element): New function.
* lisp/ob-ref.el (org-babel-ref-resolve): Use new function.  Refactor
  code.
(org-babel-ref-at-ref-p): Remove function.

* testing/lisp/test-ob.el (test-ob/ignore-reference-in-commented-headings):
  New test.
* testing/lisp/test-ob.el (test-ob/resolve-code-blocks-before-data-blocks):
  Remove test

The second test is removed because names are expected to be unique.
There is no order to expect when more than one uses the same name.

Reported-by: myq <myqlarson@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/102464>
lisp/ob-core.el
lisp/ob-ref.el
testing/lisp/test-ob.el