At Fri, 08 Oct 2010 16:35:06 +0800, Water Lin wrote: > > > I am using org project to build my web page. I have written a lot of > stuff but while I am publishing the org files, I just want to publish > the part which are marked as DONE( the keyword ). > > Is it possbile?
Yes, for example with this function that is added to
org-export-process-hook:
(defun dmj:org-remove-subtrees-in-export ()
"Remove subtrees during export."
(org-map-entries (lambda ()
(let ((beg (point))
(end (org-end-of-subtree t)))
(kill-region beg end))) "/-DONE"))
(add-hook 'org-export-preprocess-hook 'dmj:org-remove-subtrees-in-export)
This function will remove all items that are not marked done
("/-DONE", see Manual about TAGS/PROP/TODO queries) before the
exported file is created.
Of course adding this function to the hook enables it for /all/
exports, what may not be what you've wanted.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... [email protected]
Email..... [email protected]
pgpSPmt7bUees.pgp
Description: PGP signature
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. [email protected] http://lists.gnu.org/mailman/listinfo/emacs-orgmode
