From mboxrd@z Thu Jan 1 00:00:00 1970 From: markfilebat126 Subject: Re: when export org-mode to html, don't export entries of TODO, CANCELED Date: Fri, 18 Nov 2011 11:18:39 +0800 Message-ID: <871ut6yv74.fsf@126.com> References: <878vnei4nd.fsf@norang.ca> <87zkfugmoq.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]:56191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RREzG-0006fE-O2 for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 22:19:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RREzF-0004Qy-1X for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 22:19:34 -0500 Received: from m50-112.126.com ([123.125.50.112]:35476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RREzD-0004Kf-WA for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 22:19:32 -0500 In-Reply-To: <87zkfugmoq.fsf@norang.ca> (Bernt Hansen's message of "Thu, 17 Nov 2011 21:59:49 -0500") 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: Bernt Hansen Cc: filebat Mark , emacs-orgmode@gnu.org Bernt Hansen writes: Yes, Bernt, this is exactly what I want. I will dig into why my org-mode behavior is different from yours, when I return home. ,----------- my environment | GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-09-02= on pluot, modified by Debian | Org-mode version 7.5 `----------- Thanks a lot, Bernt! Denny > 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-ta= gs >> > 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 > --=20 Denny Zhang =E7=94=B5=E8=AF=9D: 18621908421 =E9=82=AE=E7=AE=B1: markfilebat@126.com =E5=BE=AE=E5=8D=9A: http://weibo.com/1686664253 =E5=8D=9A=E5=AE=A2: http://hi.baidu.com/filebat =E4=BD=A0=E6=83=B3=E8=A6=81=E7=AE=A1=E7=90=86=E7=9A=84=E4=BA=8B=E6=83=85=E8= =B6=8A=E5=B9=B3=E6=B7=A1=E6=97=A0=E5=A5=87=EF=BC=8C=E4=BD=A0=E7=9A=84=E7=B3= =BB=E7=BB=9F=E5=B0=B1=E9=9C=80=E8=A6=81=E8=B6=8A=E5=A4=8D=E6=9D=82=E6=89=8D= =E8=83=BD=E6=8A=8A=E5=AE=83=E4=BB=AC=E7=AE=A1=E7=90=86=E5=A5=BD=E3=80=82 =E2=97=8F=E2=96=88=E3=80=93=E2=96=88=E2=96=88=E2=96=84=E2=96=84=E2=96=84=E2= =96=84=E2=96=84=E2=96=84 =E2=97=8F=E2=97=8F=E2=97=8F=E2=97=8F=E2=97=8F=E2= =97=8F---- =E2=96=84=E2=96=85=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=85=E2=96=84=E2=96=83=E2=96=82 =E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2= =96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88 =E2=97=A5=E2=8A=99=E2=96=B2=E2=8A=99=E2=96=B2=E2=8A=99=E2=96=B2=E2=8A=99=E2= =96=B2=E2=8A=99=E2=96=B2=E2=8A=99=E2=96=B2=E2=97=A4