From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: How can I just publish entry marked as DONE? Date: Tue, 26 Oct 2010 21:34:45 +0200 Message-ID: <87aam0694a.wl%dmaus@ictsoc.de> References: <84iq1dgk05.fsf@sohu.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1709959742==" Return-path: Received: from [140.186.70.92] (port=39282 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PApIz-0000H2-Ri for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 15:35:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PApII-0007lE-Ki for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 15:34:52 -0400 Received: from mailout108.xlhost.de ([213.202.242.108]:39004 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PApII-0007l2-Fe for emacs-orgmode@gnu.org; Tue, 26 Oct 2010 15:34:50 -0400 In-Reply-To: <84iq1dgk05.fsf@sohu.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Water Lin Cc: emacs-orgmode@gnu.org --===============1709959742== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Oct_26_21:34:44_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Tue_Oct_26_21:34:44_2010-1 Content-Type: text/plain; charset=US-ASCII 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.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Tue_Oct_26_21:34:44_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkzHLVQACgkQma24O1pEeOb9mAEA35qX6mO5UH2uQwXI531cCm+R voB+Nboijdezp924o/MA/1DEZ/gwggsikI6dxlVr37sz+6n5t3jYC30/nq8zm3f5 =Y09N -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Oct_26_21:34:44_2010-1-- --===============1709959742== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1709959742==--