org-export: Export snippets are not skipped automatically: back-ends decide
commit0fa24209cf2f2e1443f856c958a8b858c3e8a8f6
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 23 Feb 2012 17:10:14 +0000 (23 18:10 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 23 Feb 2012 17:21:29 +0000 (23 18:21 +0100)
tree9ac408ac1e2e50fa35354b0ed668eb63d9d809f4
parent8714fba308b08e305ba43b7bb0202bea7dccf5ae
org-export: Export snippets are not skipped automatically: back-ends decide

* contrib/lisp/org-export.el (org-export-snippet-backend): New
  function.
(org-export--skip-p): Remove automatic skip of export snippets.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii-export-snippet): Use new
  function.
* EXPERIMENTAL/org-e-html.el (org-e-html-export-snippet): Use new
  function.
* EXPERIMENTAL/org-e-latex.el (org-e-latex-export-snippet): Use new
  function.
* EXPERIMENTAL/org-e-odt.el (org-e-odt-export-snippet): Use new
  function.
* testing/contrib/lisp/test-org-export.el: Add test.

The idea behind this change is that a given back-end may decide to
keep an export snippet not directly targetted at it (i.e. a beamer
back-end that would want to keep latex snippets).  Hence, filtering
snippets is on back-ends side, and a new function is added to help
them in that task.
EXPERIMENTAL/org-e-ascii.el
EXPERIMENTAL/org-e-html.el
EXPERIMENTAL/org-e-latex.el
EXPERIMENTAL/org-e-odt.el
contrib/lisp/org-export.el
testing/contrib/lisp/test-org-export.el