0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-16 02:40:03 +00:00
org-mode/contrib/lisp
Nicolas Goaziou cc839259a4 org-export: Nil value from a filter means filter will be skipped
* contrib/lisp/org-export.el (org-export-filter-apply-functions): Nil
  value from a filter means filter will be skipped. To ignore the
  current element or object, the filter has to return the empty string
  instead.

This change is done to ease filter writing. When writing
a backend-specific filter (and I guess most are), there's no more need
for the somewhat contrived:

  (if (not (eq backend 'e-latex)) data
    ... filter's job...)

A more straightforward:

  (when (eq backend 'e-latex)
    ... filter's job...)

is now enough.

On the other hand, it is not possible anymore to specify 'ignore as
a filter to ignore every element or object of a given type. To
achieve that goal, one can now write, for example:

  (add-to-list 'org-export-filter-example-block-functions
                 (lambda (value backend info)
                   (when (eq backend 'e-html) "")))

It will ignore every example block in the `e-html' export back-end.
2012-08-24 09:56:48 +02:00
..
htmlize.el
org-annotate-file.el
org-bibtex-extras.el
org-bookmark.el contrib/lisp/: Replace the deleted function org-make-link' by concat' 2012-08-20 14:03:15 +02:00
org-checklist.el org-checklist.el: Fix dynamically bound variable name. 2012-04-02 16:02:44 +02:00
org-choose.el
org-collector.el
org-contacts.el
org-contribdir.el
org-depend.el
org-drill.el org-drill: prevent fontifcation functions from being called when saving outline 2012-05-06 10:45:39 +12:00
org-e-ascii.el org-e-ascii: Remove spurious blank lines ascii art tables 2012-08-03 09:57:15 +02:00
org-e-beamer.el org-e-beamer: Do not normalize empty arguments 2012-08-22 17:45:18 +02:00
org-e-groff.el Enhanced the org-e-groff.el code to use the Groff MM letter macros 2012-08-10 10:14:00 -04:00
org-e-html.el org-export: Limit depth of headline collection to headline level 2012-08-24 09:36:18 +02:00
org-e-latex.el org-e-latex: Fix bug when exporting empty items 2012-08-22 16:55:18 +02:00
org-e-man.el Removed not needed variables in org-e-groff.el and org-e-man.el 2012-08-08 12:31:05 -04:00
org-e-odt.el contrib: Do not tell files are part of Emacs if they are not (yet) 2012-08-16 00:01:59 +02:00
org-e-publish.el contrib: Do not tell files are part of Emacs if they are not (yet) 2012-08-16 00:01:59 +02:00
org-e-texinfo.el contrib/lisp/org-e-texinfo: Ensure valid export of escaped characters 2012-08-23 10:51:47 -04:00
org-elisp-symbol.el
org-eval-light.el
org-eval.el
org-exp-bibtex.el
org-expiry.el
org-export-generic.el org-export-generic.el: Add require 'cl for defmacro*. 2012-07-25 08:32:54 +02:00
org-export.el org-export: Nil value from a filter means filter will be skipped 2012-08-24 09:56:48 +02:00
org-git-link.el contrib/lisp/: Replace the deleted function org-make-link' by concat' 2012-08-20 14:03:15 +02:00
org-interactive-query.el
org-invoice.el
org-jira.el
org-learn.el contrib: Do not tell files are part of Emacs if they are not (yet) 2012-08-16 00:01:59 +02:00
org-mac-iCal.el
org-mac-link-grabber.el
org-mairix.el
org-man.el
org-md.el org-md: Fix export of paragraph starting with an hash sign 2012-08-19 15:59:24 +02:00
org-mime.el
org-mtags.el
org-notify.el
org-notmuch.el contrib/lisp/: Replace the deleted function org-make-link' by concat' 2012-08-20 14:03:15 +02:00
org-panel.el
org-registry.el
org-screen.el
org-secretary.el
org-static-mathjax.el
org-sudoku.el
org-toc.el
org-track.el contrib: Do not tell files are part of Emacs if they are not (yet) 2012-08-16 00:01:59 +02:00
org-velocity.el
org-wikinodes.el contrib: Do not tell files are part of Emacs if they are not (yet) 2012-08-16 00:01:59 +02:00
org2rem.el
orgtbl-sqlinsert.el