0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-22 04:49:34 +00:00
org-mode/contrib
Nicolas Goaziou 5313dc9d09 org-export: Allow user to explicitely ignore parts of parse tree
* contrib/lisp/org-export.el (org-export-collect-tree-properties):
  Do not overwrite any user's ignore list.
* testing/contrib/lisp/test-org-export.el: Add test.

A good way to populate `:ignore-list' is through the use of
`org-export-filter-parse-tree-functions', with the help of
`org-element-map' and `org-export-ignore-element'.  As an example, the
following code will skip every headline containing the word "note"
in its title during a LaTeX export:

(defun user-skip-note-headlines (data backend info)
  ;; For now LaTeX back-end is called `e-latex'.
  (when (eq backend 'test)
    ;; Traverse the parse tree, adding to ignore list any headline
    ;; matching criteria.
    (org-element-map
     data 'headline
     (lambda (headline)
       (when (string-match "\\<note\\>"
                           (org-element-property :raw-value headline))
         (org-export-ignore-element headline info)))
     info))
  ;; Return original DATA.
  data)

Then install it in parse-tree filters:

(add-to-list 'user-skip-note-headlines org-export-filter-parse-tree-functions)

Back-end delevopers will install it via `org-BACKEND-filters-alist'
where BACKEND stands for the name of the back-end considered.  Se
`org-export-filters-alist' for more information.
2012-02-25 14:55:21 +01:00
..
babel Merge branch 'origin-maint' 2012-02-18 09:16:20 -07:00
doc Remove arch-tag at the bottom of documentation files. 2011-08-15 20:04:55 +02:00
lisp org-export: Allow user to explicitely ignore parts of parse tree 2012-02-25 14:55:21 +01:00
odt Retire support for BasicODConverter 2012-02-12 16:59:37 +05:30
scripts Fix copyright (to 2012) year and Org version (to 7.8.03). 2012-01-03 18:47:01 +01:00
README Add org-sudoku to contrib directory 2011-08-09 18:25:29 +02:00

This directory contains add-ons to Org-mode.

These contributions are not part of GNU Emacs or of the official Org-mode
package.  But the git repository for Org-mode is glad to provide useful way
to distribute and develop them as long as they are distributed under a free
software license.

Please put your contribution in one of these three directories:

LISP (emacs-lisp code)
======================
htmlize.el               --- Convert buffer text and decorations to HTML
org2rem.el               --- Convert org appointments into reminders
org-annotate-file.el     --- Annotate a file with org syntax
org-bookmark.el          --- Links to bookmarks
org-checklist.el         --- org functions for checklist handling
org-choose.el            --- Use TODO keywords to mark decision states
org-collector.el         --- Collect properties into tables
org-contacts             --- Contacts management
org-contribdir.el        --- Dummy file to mark the org contrib Lisp directory
org-depend.el            --- TODO dependencies for Org-mode
org-drill.el             --- Self-testing with org-learn
org-depend.el            --- TODO dependencies for Org-mode
org-elisp-symbol.el      --- Org links to emacs-lisp symbols
org-eshell.el            --- Support for links to working directories in eshell
org-eval.el              --- The <lisp> tag, adapted from Muse
org-eval-light.el        --- Evaluate in-buffer code on demand
org-exp-bibtex.el        --- Export citations to LaTeX and HTML
org-expiry.el 	         --- Expiry mechanism for Org entries
org-export-generic.el    --- Export framework for configurable backends
org-git-link.el          --- Provide org links to specific file version
org-interactive-query.el --- Interactive modification of tags query
org-invoice.el           --- Help manage client invoices in OrgMode
org-jira.el              --- Add a jira:ticket protocol to Org
org-learn.el             --- SuperMemo's incremental learning algorithm
org-lparse.el            --- Library for building custom exporters
org-mac-iCal.el          --- Imports events from iCal.app to the Emacs diary
org-mac-link-grabber.el  --- Grab links and URLs from various Mac applications
org-mairix.el 	         --- Hook mairix search into Org for different MUAs
org-man.el 	         --- Support for links to manpages in Org-mode
org-mime.el              --- org html export for text/html MIME emails
org-mtags.el 	         --- Support for some Muse-like tags in Org-mode
org-odt.el 	         --- OpenDocumentText exporter for Org-mode
org-panel.el 	         --- Simple routines for us with bad memory
org-registry.el          --- A registry for Org links
org-screen.el            --- Visit screen sessions through Org-mode links
org-secretary.el         --- Team management with org-mode
org-special-blocks.el    --- Turn blocks into LaTeX envs and HTML divs
org-sudoku.el            --- Create and solve SUDOKU puzzles in Org tables
orgtbl-sqlinsert.el      --- Convert Org-mode tables to SQL insertions
org-toc.el 	         --- Table of contents for Org-mode buffer
org-track.el             --- Keep up with Org development
org-velocity.el          --- something like Notational Velocity for Org
org-wikinodes            --- CamelCase wiki-like links for Org


PACKAGES
========

SCRIPTS (shell, bash, etc.)
===========================

dir2org.zsh          --- Org compatible fs structure output
org2hpda	     --- Generate hipster pda style printouts from Org-mode
ditaa.jar            --- ASCII to PNG converter by Stathis Sideris, GPL