From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Confusion about TODO tags Date: Tue, 23 Mar 2010 20:12:52 -0400 Message-ID: <87ocier30b.fsf@fastmail.fm> References: <3cbb63d01003231429r41606b37y4b25e66bc14260df@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuECr-0005X5-3K for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 20:12:21 -0400 Received: from [140.186.70.92] (port=51274 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuECp-0005VD-Mt for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 20:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuECn-0007wC-ES for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 20:12:19 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:47988) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuECn-0007w6-Ak for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 20:12:17 -0400 In-Reply-To: <3cbb63d01003231429r41606b37y4b25e66bc14260df@mail.gmail.com> (Chao Lu's message of "Tue, 23 Mar 2010 17:29:26 -0400") 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: Chao Lu Cc: emacs-orgmode@gnu.org Chao Lu 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