From: David Maus <dmaus@ictsoc.de>
To: Water Lin <WaterLin@sohu.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How can I just publish entry marked as DONE?
Date: Tue, 26 Oct 2010 21:34:45 +0200 [thread overview]
Message-ID: <87aam0694a.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <84iq1dgk05.fsf@sohu.com>
[-- 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
prev parent reply other threads:[~2010-10-26 19:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 8:35 How can I just publish entry marked as DONE? Water Lin
2010-10-26 19:34 ` David Maus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aam0694a.wl%dmaus@ictsoc.de \
--to=dmaus@ictsoc.de \
--cc=WaterLin@sohu.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).