From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lindsay Todd" Subject: Batch exporting a sparse tree Date: Fri, 28 Nov 2008 18:55:41 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6DBc-00055q-W6 for emacs-orgmode@gnu.org; Fri, 28 Nov 2008 18:55:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6DBa-00055Y-Fo for emacs-orgmode@gnu.org; Fri, 28 Nov 2008 18:55:47 -0500 Received: from [199.232.76.173] (port=37486 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6DBa-00055V-AB for emacs-orgmode@gnu.org; Fri, 28 Nov 2008 18:55:46 -0500 Received: from nf-out-0910.google.com ([64.233.182.185]:25192) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L6DBZ-0007LU-Sp for emacs-orgmode@gnu.org; Fri, 28 Nov 2008 18:55:46 -0500 Received: by nf-out-0910.google.com with SMTP id c7so899485nfi.26 for ; Fri, 28 Nov 2008 15:55:41 -0800 (PST) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode 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?