ox: Prune parse tree before calling tree filter
commitb6fce5c90b336fdad409be791b879b7abf721a75
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 23 Jan 2015 22:59:23 +0000 (23 23:59 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 23 Jan 2015 22:59:23 +0000 (23 23:59 +0100)
treee9d1cc1067fab929496b2074c0ef6c6d329875a3
parent3996de60dad4f53cb2eae87b901e0f47ba57ada3
ox: Prune parse tree before calling tree filter

* lisp/ox.el (org-export-collect-tree-properties): Do not
  set :ignore-list.
(org-export--populate-ignore-list): Remove function.
(org-export--selected-trees): Small refactoring.
(org-export-prune-tree): New function.
(org-export-remove-uninterpreted-data): Fix docstring.
(org-export-as): Prune tree before calling tree filter.

* testing/lisp/test-ox.el (org-test-with-parsed-data): Fix macro.

This patch introduces two changes in the export process:

  1. Non-exported elements are removed from the tree instead of being
     moved into an ignore list (with the exceptions of tables rows
     and cells)

  2. Parse tree filter is called on the tree being exported, not the
     original one.

Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/94162>
lisp/ox.el
testing/lisp/test-ox.el