From mboxrd@z Thu Jan 1 00:00:00 1970 From: filebat Mark Subject: when export org-mode to html, don't export entries of TODO, CANCELED Date: Fri, 18 Nov 2011 08:22:23 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f3ba0dbc01bac04b1f754b6 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRCDq-0008NQ-E4 for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 19:22:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRCDp-0000OI-G4 for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 19:22:26 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:63481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRCDp-0000OE-Db for emacs-orgmode@gnu.org; Thu, 17 Nov 2011 19:22:25 -0500 Received: by ggnq1 with SMTP id q1so2219996ggn.0 for ; Thu, 17 Nov 2011 16:22:24 -0800 (PST) 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: emacs-orgmode@gnu.org Cc: Denny Zhang --e89a8f3ba0dbc01bac04b1f754b6 Content-Type: text/plain; charset=ISO-8859-1 hi emacsers 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? http://hi.baidu.com/filebat/blog/item/6406a9fd6f79fd0b08244d7d.html --e89a8f3ba0dbc01bac04b1f754b6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
hi emacsers

<= td style=3D"word-wrap: break-word; word-break: break-all; visibility: visib= le !important; zoom: 1 !important; filter: none; font-size: 12px; line-heig= ht: 18px; ">
<= pre style=3D"color: rgb(51, 51, 51); ">Exporting org-mode's entries to = html is a fantastic way for knowledge sharing! Usually entries of "TODO" "HALF" "DELEGATE" &= quot;CANCELED" "DEFERRED" are incomplete/immature knowledge. Thus, I don't want to export them. Furthermore, after they are marked a= s "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-ex= port-handle-export-tags function. It determines what to be excluded when exporting, by search regexp of :\\(T= AG1\\|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?

http://hi.baidu.com/fileb= at/blog/item/6406a9fd6f79fd0b08244d7d.html



--e89a8f3ba0dbc01bac04b1f754b6--