org-element: Ignore plain footnotes
commitdeafe565548992fb56a4fe7d613996fcd18d038f
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Wed, 16 Dec 2015 17:22:27 +0000 (16 18:22 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 22 Dec 2015 15:55:17 +0000 (22 16:55 +0100)
treeccb5bed97372c9cf23ec54d10aba81df9261c076
parent25eb14bc2cadab293e200c018284870a1eeb4490
org-element: Ignore plain footnotes

* lisp/org-element.el (org-element--set-regexps):
(org-element-footnote-definition-interpreter):
(org-element-footnote-reference-parser):
(org-element-footnote-reference-interpreter): Do not consider [1]-like
constructs as footnotes anymore.

* lisp/ox.el (org-export-expand-include-keyword):
(org-export--prepare-file-contents): Apply changes to footnotes.

* doc/org.texi (Footnotes): Remove references to plain footnotes.

* testing/lisp/test-org-element.el (test-org-element/footnote-reference-parser):
(test-org-element/footnote-reference-interpreter):
* testing/lisp/test-ox.el (test-org-export/expand-include):
(test-org-export/expand-macro):
(test-org-export/get-footnote-number):
(test-org-export/collect-footnote-definitions):
(test-org-export/footnotes):
(test-org-export/fuzzy-link): Update tests.

Since it is possible to refer unambiguously to a label without the "fn:"
prefix, the latter becomes part of the syntax and no longer part of the
label.  In particular [fn:1] and [fn:label] are labelled, respectively,
"1" and "label".
doc/org.texi
lisp/org-element.el
lisp/ox.el
testing/lisp/test-org-element.el
testing/lisp/test-ox.el