[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Batch exporting a sparse tree

From: Lindsay Todd
Subject: [Orgmode] Batch exporting a sparse tree
Date: Fri, 28 Nov 2008 18:55:41 -0500

I am trying to write a script to extract a sparse tree, selected by
TODO keywords, from my the gtd.org file.  The sparse tree should then
be exported to an html file.  I am using this command:

emacs -batch -l ~/.emacs \
    -eval '(find-file "~/projects/gtd.org")' \
    -eval '(org-show-todo-tree "PROJECT|MAYBE")'  \
    -eval '(org-export-visible ?h nil)'

The resulting html file has entries for "PROJECT" and "NEXT"!
Meanwhile, none of my "MAYBE" entries are selected.  What might I be
doing wrong?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]