emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Chao Lu <loochao@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Confusion about TODO tags
Date: Tue, 23 Mar 2010 20:12:52 -0400	[thread overview]
Message-ID: <87ocier30b.fsf@fastmail.fm> (raw)
In-Reply-To: <3cbb63d01003231429r41606b37y4b25e66bc14260df@mail.gmail.com> (Chao Lu's message of "Tue, 23 Mar 2010 17:29:26 -0400")

Chao Lu <loochao@gmail.com> writes:

> Why we need the tag-todo, what's the difference between the tag-todo
> and if I define a tag named with TODO?

I could not find a "tag-todo" anywhere in the manual. Are you referring
to the "tags-todo" search discussed in the documentation for
org-agenda-custom-commands? If so, this search returns all active TODOs
that match a given tag.

> And is it possible when I change the state of one task to done, it will
> be archived automatically?

(add-hook 'org-after-todo-state-change-hook 
	  (lambda ()
	    (when (string-match org-looking-at-done-regexp state)
	      (org-archive-subtree-default))))

> Besides, how could I modify the behavior of the archive function, since
> I found the item
> -----------------
> *** blabla after archive, will be changed to
>
> * blabla
> properties
> -----------------
> which I do not like so much.

I assume you mean:

,----
| * blabla
|   :PROPERTIES:
|   :ARCHIVE_TIME: 2010-03-23 Tue 20:10
|   :ARCHIVE_CATEGORY: blaaahhh
|   :END:
`----

If you want to avoid the context properties, use the following setting:

(setq org-archive-save-context-info nil)

Best,
Matt

      reply	other threads:[~2010-03-24  0:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23 21:29 Confusion about TODO tags Chao Lu
2010-03-24  0:12 ` Matt Lundin [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=87ocier30b.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=loochao@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).