emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] when export org-mode to html, don't export entries of TODO, CANCELED


From: filebat Mark
Subject: [O] when export org-mode to html, don't export entries of TODO, CANCELED
Date: Fri, 18 Nov 2011 08:22:23 +0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]