emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: markfilebat126 <markfilebat@126.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: filebat Mark <filebat.mark@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: when export org-mode to html, don't export entries of TODO, CANCELED
Date: Fri, 18 Nov 2011 11:18:39 +0800	[thread overview]
Message-ID: <871ut6yv74.fsf@126.com> (raw)
In-Reply-To: <87zkfugmoq.fsf@norang.ca> (Bernt Hansen's message of "Thu, 17 Nov 2011 21:59:49 -0500")

Bernt Hansen <bernt@norang.ca> writes:

Yes, Bernt, this is exactly what I want.
I will dig into why my org-mode behavior is different from yours, when I
return home.

,----------- my environment
| GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-09-02 on pluot, modified by Debian
| Org-mode version 7.5
`-----------

Thanks a lot, Bernt!

Denny
> filebat Mark <filebat.mark@gmail.com> writes:
>
>> Hi Bernt
>>
>> I am not sure whether I get you correctly.
>>
>> The behavior of [#+OPTIONS: tasks:("DONE") todo:nil] looks like (setq
>> org-export-with-todo-keywords nil).
>>
>> My purpose is not to export entries of "TODO", "CANCELED", etc,
>> instead of only strings of "TODO", "CANCELED".
>
> This should export all headings that have no todo keyword AND headings
> with the DONE keyword.  All other keywords are skipped which I thought
> was what you were trying to accomplish.
>
> I tested it with this org file: http://norang.ca/tmp/scratch.org
> which exports to http://norang.ca/tmp/scratch.html
>
> -Bernt
>
>>
>> On Fri, Nov 18, 2011 at 9:46 AM, Bernt Hansen <bernt@norang.ca>
>> wrote:
>>
>>     filebat Mark <filebat.mark@gmail.com> writes:
>>    
>>     > 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?
>>    
>>     Hi,
>>    
>>     Try adding this to your org file and then exporting
>>    
>>     #+OPTIONS: tasks:("DONE") todo:nil
>>    
>>     Regards,
>>     Bernt
>>
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Denny Zhang
>

-- 
Denny Zhang
电话: 18621908421
邮箱: markfilebat@126.com
微博: http://weibo.com/1686664253
博客: http://hi.baidu.com/filebat

你想要管理的事情越平淡无奇,你的系统就需要越复杂才能把它们管理好。


●█〓██▄▄▄▄▄▄ ●●●●●●----
▄▅██████▅▄▃▂
██████████████
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲◤

  reply	other threads:[~2011-11-18  3:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-18  0:22 when export org-mode to html, don't export entries of TODO, CANCELED filebat Mark
2011-11-18  1:46 ` Bernt Hansen
2011-11-18  2:10   ` filebat Mark
2011-11-18  2:59     ` Bernt Hansen
2011-11-18  3:18       ` markfilebat126 [this message]
2011-11-18  3:46         ` Nick Dokos
  -- strict thread matches above, loose matches on Subject: below --
2011-11-18  5:05 Denny

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=871ut6yv74.fsf@126.com \
    --to=markfilebat@126.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=filebat.mark@gmail.com \
    /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).