ox: Add optional order argument to some footnotes related functions
commitccb663c7424303c5400d36996d5c3f6444519e4e
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 13 Feb 2015 13:10:51 +0000 (13 14:10 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 13 Feb 2015 13:10:51 +0000 (13 14:10 +0100)
tree7e8946f66dad680753c0a3df91e08e9f8f1c93d6
parentb95f7aa82366319e996e4c2b690928478f814695
ox: Add optional order argument to some footnotes related functions

* lisp/ox.el (org-export--footnote-reference-map): New function.
(org-export-footnote-first-reference-p,
org-export-get-footnote-number): Allow to change order when footnotes
references are contained within footnote definitions.

* testing/lisp/test-ox.el (test-org-export/footnote-first-reference-p):
(test-org-export/get-footnote-number):  New tests.
(test-org-export/footnotes): Update test.
lisp/ox.el
testing/lisp/test-ox.el