From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: when export org-mode to html, don't export entries of TODO, CANCELED Date: Thu, 17 Nov 2011 20:46:30 -0500 Message-ID: <878vnei4nd.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRDXL-0003wF-8t for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 20:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRDXK-0005sb-2f for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 20:46:39 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:25214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRDXK-0005sU-0h for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 20:46:38 -0500 In-Reply-To: (filebat Mark's message of "Fri, 18 Nov 2011 08:22:23 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: filebat Mark Cc: Denny Zhang , emacs-orgmode@gnu.org filebat Mark writes: > Exporting org-mode's entries to html is a fantastic way for knowledge > sharing! > > Usually entries of "TODO" "HALF" "DELEGATE" "CANCELED" "DEFERRED" are > incomplete/immature knowledge. Thus, I don't want to export > them. Furthermore, after they are marked as "DONE", I'd like to export > them. > > Any idea for how to do this? Note that org-export-exclude-tags > doesn't help us, at my first glance. > > > Draft solution: > After checking the implementation of org-mode for this part, I found > org-export-handle-export-tags function. It determines what to be > excluded when exporting, by search regexp of :\\(TAG1\\|TAG2\\|...\\): > in entries' title. > > Thus I override org-export-handle-export-tags, by search regexp of \\(TAG1\\|TAG2\\|...\\) with leading/tailing colon removed. > > It's ugly but it works. > So my open question is what's the better solution? Hi, Try adding this to your org file and then exporting #+OPTIONS: tasks:("DONE") todo:nil Regards, Bernt