Handling of file inclusion through keywords is done before export
commit176b959c4f55fc7b3f59a0022284d6826d14725d
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 4 Feb 2012 20:49:58 +0000 (4 21:49 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 5 Feb 2012 11:57:50 +0000 (5 12:57 +0100)
treeb2b6db7f0965763d38f89f8d01d52eca6cbd3afe
parent2402d7a192e266026454030033f5fcf887ca8d4b
Handling of file inclusion through keywords is done before export

* contrib/lisp/org-element.el (org-element-map): Remove included file
  expansion part.
* contrib/lisp/org-export.el (org-export-as): Expand include keywords
  before executing blocks.
(org-export-expand-include-keyword, org-export-prepare-file-contents):
  New functions.
(org-export-included-file, org-export-parse-included-file): Removed
  functions.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii-keyword): Remove include
  keyword handling.
* EXPERIMENTAL/org-e-latex.el (org-e-latex-keyword): Remove include
  keyword handling.

Back-ends do not need anymore to take care of #+include keywords.
This change is required since file inclusion can potentially break any
structure.  Hence, it should be done before parsing.
EXPERIMENTAL/org-e-ascii.el
EXPERIMENTAL/org-e-latex.el
contrib/lisp/org-element.el
contrib/lisp/org-export.el