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 21:59:49 -0500 Message-ID: <87zkfugmoq.fsf@norang.ca> References: <878vnei4nd.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RREgH-0004jF-Fn for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 21:59:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RREgG-0001sh-1G for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 21:59:57 -0500 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:44275 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RREgF-0001sY-Ql for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 21:59:56 -0500 In-Reply-To: (filebat Mark's message of "Fri, 18 Nov 2011 10:10:53 +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: > Hi Bernt > > I am not sure whether I get you correctly. > > The behavior of [#+OPTIONS: tasks:("DONE") todo:nil] looks like (setq > org-export-with-todo-keywords nil). > > My purpose is not to export entries of "TODO", "CANCELED", etc, > instead of only strings of "TODO", "CANCELED". This should export all headings that have no todo keyword AND headings with the DONE keyword. All other keywords are skipped which I thought was what you were trying to accomplish. I tested it with this org file: http://norang.ca/tmp/scratch.org which exports to http://norang.ca/tmp/scratch.html -Bernt > > On Fri, Nov 18, 2011 at 9:46 AM, Bernt Hansen > wrote: > > filebat Mark writes: >=20=20=20=20 > > 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. =C2=A0Thus, 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? =C2=A0Note 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. =C2=A0It 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? >=20=20=20=20 > Hi, >=20=20=20=20 > Try adding this to your org file and then exporting >=20=20=20=20 > #+OPTIONS: tasks:("DONE") todo:nil >=20=20=20=20 > Regards, > Bernt > > > > > -- > Thanks & Regards > > Denny Zhang