org-element: Remove :inline-definition from inline footnotes
commitca6ecf9e498e6c4750f279e9f0ea0185bc8b1d10
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 6 Jul 2014 09:08:57 +0000 (6 11:08 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 6 Jul 2014 09:24:12 +0000 (6 11:24 +0200)
treeb709f136e89f674c50f9ecb65558d02545bb41dc
parentdf9ccbd11918c8e7273b98520f335573f512aa05
org-element: Remove :inline-definition from inline footnotes

* lisp/org-element.el (org-element-recursive-objects): Add
  `footnote-reference'.
(org-element-secondary-value-alist): Remove reference to
`footnote-reference'.
(org-element-footnote-reference-parser): Definition for inline
references is stored as the contents of the reference, not in
a secondary string.
(org-element-footnote-reference-interpreter): Apply changes from
parser.

* lisp/ox.el (org-export-get-footnote-definition,
  org-export-get-environment): Apply changes from parser.

* testing/lisp/test-org-element.el (test-org-element/footnote-reference-parser):
  Update test.
(test-org-element/context): Add test.

Storing definition in a secondary string was a poor design choice as
there is no "primary" string anyway.  This also prevents
`org-element-context' from finding objects within the inline
definition.
lisp/org-element.el
lisp/ox.el
testing/lisp/test-org-element.el