ox: Fix export of footnote definitions in pruned parts of tree
commit5e37a5c116b0e9361fa7d83ff106e0a36bfd4bee
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 27 Jun 2016 21:50:58 +0000 (27 23:50 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 27 Jun 2016 21:57:42 +0000 (27 23:57 +0200)
tree4d91af31ba1eb92dc4adbcfab6e7a46fee1fd679
parent0d72c3493782e418a4aab8ce6f3cb552fdb089e5
ox: Fix export of footnote definitions in pruned parts of tree

* lisp/ox.el (org-export--missing-definitions):
(org-export--install-footnote-definitions): New functions
(org-export--merge-external-footnote-definitions): Remove function
(org-export-as):
(org-export--prune-tree): Use new functions.
* testing/lisp/test-ox.el (test-org-export/footnotes): Add tests.

Reported-by: Mark Edgington <edgimar@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107940>
lisp/ox.el
testing/lisp/test-ox.el