My personal patches-in-progress branch of Org. See https://git.tecosaur.net/mirrors/org-mode/compare/main..tec/org-mode:dev.
Go to file
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
BUGFIXING Replace org-mode-p with usual (eq major-mode 'org-mode) check 2011-10-22 11:29:24 +02:00
EXPERIMENTAL org-element: Function mapped through org-element-map accepts only one argument 2012-02-25 14:53:35 +01:00
UTILITIES UTILITIES: Use a separate css for the HTML manuals. 2011-12-13 00:21:16 +01:00
contrib org-export: Allow user to explicitely ignore parts of parse tree 2012-02-25 14:55:21 +01:00
doc Pull up ODT files from "maint" to "master" levels 2012-02-20 10:25:31 +05:30
etc/styles Pull up ODT files from "maint" to "master" levels 2012-02-20 10:25:31 +05:30
lisp Merge branch 'maint' 2012-02-25 11:13:58 +01:00
testing org-export: Allow user to explicitely ignore parts of parse tree 2012-02-25 14:55:21 +01:00
.dir-locals.el Make .dir-locals.el a true copy of .dir-settings.el 2011-01-15 12:44:34 +01:00
.dir-settings.el Add .dir-settings.el file to unify coding styles. 2008-11-20 15:45:22 +01:00
.gitignore gitignore patch 2010-08-17 09:54:21 +02:00
.gitmodules Changes to suit latest ert structure. ERT is now a part of EMACS and the source of the ERT git submodule is deprecated, as are some files within. Changes testing/README and .gitmodules to suit. 2011-03-01 09:59:01 -07:00
Makefile Makefile: Support DESTDIR in Makefile 2012-02-24 16:20:25 +05:30
README README: remove the description of ORGWEBPAGES/ 2011-01-09 15:08:11 +01:00
README_DIST Fix copyright (to 2012) year and Org version (to 7.8.03). 2012-01-03 18:47:01 +01:00
README_GIT Update README_GIT 2011-07-08 15:22:21 +00:00
README_maintainer README_maintainer: update the link to "Git from bottom up". 2011-07-28 16:15:28 +02:00
request-assign-future.txt Release 5.13e 2008-01-31 11:37:24 +01:00

README

This is the Emacs Org project, an emacs subsystem for organizing your life

The homepage of Org is at http://orgmode.org

This distribution contains:

README
    This file.

README_DIST
    The README file for the distribution (zip and tar files)

README_GIT
    Information about the git repository and how to contribute
    to Org-mode development. 

lisp/
    Directory with all the Emacs Lisp files that make up Org.

doc/
    The documentation files.  org.texi is the source of the
    documentation, org.html and org.pdf are formatted versions of it.

contrib/
    A directory with third-party additions for Org.  Some really cool
    stuff is in there.

ChangeLog
    The standard ChangeLog file.

Makefile
    The makefile to compile and install Org, and also for maintenance
    tasks.

request-assign-future.txt
    The form that contributors have to sign and get processed with the
    FSF before contributed changes can be integrated into the Org
    core.  All files in this distribution except the CONTRIB directory
    have copyright assigned to the FSF.

EXPERIMENTAL
    Experimental code, not necessarily FSF copyright.