Fix radio target parsing
commit8212776cfcccd3a45594797b6253bb94f1a3944e
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 23 Mar 2014 10:28:26 +0000 (23 11:28 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 24 Mar 2014 13:13:24 +0000 (24 14:13 +0100)
tree684bd0e1433879df16ac9fe985bb6810c3e9be5d
parent955d9d8a78b82fa038ef9fd32ec185bda8ef9658
Fix radio target parsing

* lisp/org-element.el (org-element-all-successors,
  org-element-object-restrictions): Prioritize `link' over other
  successors in order to find radio links starting with another syntax
  object (e.g., an entity).  Also allow text markup within radio
  targets.
(org-element-link-parser): Add contents to radio targets.

* lisp/org.el (org-make-target-link-regexp): Fix regexp so it can
  match targets starting with an Org object (e.g., an entity).
(org-ctrl-c-ctrl-c): Fix function when applied on an object contained
within a radio target.

* testing/lisp/test-org-element.el (test-org-element/radio-target-parser): Add test.
* testing/lisp/test-ox.el (test-org-export/resolve-radio-link): Add test.
lisp/org-element.el
lisp/org.el
testing/lisp/test-org-element.el
testing/lisp/test-ox.el