emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How can I just publish entry marked as DONE?
@ 2010-10-08  8:35 Water Lin
  2010-10-26 19:34 ` David Maus
  0 siblings, 1 reply; 2+ messages in thread
From: Water Lin @ 2010-10-08  8:35 UTC (permalink / raw)
  To: emacs-orgmode


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?

Thanks

Water Lin

-- 
The Big Bang on Busy Reading: http://bigbang.WaterLin.org
Email: WaterLin@sohu.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How can I just publish entry marked as DONE?
  2010-10-08  8:35 How can I just publish entry marked as DONE? Water Lin
@ 2010-10-26 19:34 ` David Maus
  0 siblings, 0 replies; 2+ messages in thread
From: David Maus @ 2010-10-26 19:34 UTC (permalink / raw)
  To: Water Lin; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1011 bytes --]

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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-26 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08  8:35 How can I just publish entry marked as DONE? Water Lin
2010-10-26 19:34 ` David Maus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).