To answer my own question, this incantation seems to work: emacs -batch -l ~/.emacs \ -eval '(progn (find-file "~/projects/gtd.org") (org-tags-sparse-tree t "TODO=\"PROJECT\"|TODO=\"MAYBE\"") (org-export-visible ?h nil))' -kill
Is there a way to remove tags while doing this export? /Lindsay On Fri, Nov 28, 2008 at 6:55 PM, Lindsay Todd <[EMAIL PROTECTED]> wrote: > 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? > _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode