From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: add todo state when tagging by specific tag Date: Thu, 19 Nov 2009 17:14:56 -0500 Message-ID: <87aayiqhzz.fsf@gollum.intra.norang.ca> References: <1e5bcefd0911191411x4137597dvebc2d42a6c9c3eb2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBFlq-0000LA-Sl for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 17:46:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBFln-0000HE-8q for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 17:46:34 -0500 Received: from [199.232.76.173] (port=50795 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBFlm-0000Gy-Pf for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 17:46:30 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:50763) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBFHZ-0006Mq-P9 for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 17:15:18 -0500 In-Reply-To: <1e5bcefd0911191411x4137597dvebc2d42a6c9c3eb2@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Thu\, 19 Nov 2009 16\:11\:14 -0600") 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: Marcelo de Moraes Serpa Cc: Org Mode Marcelo de Moraes Serpa writes: > What would be the easiest way to apply a TODO state to an item just after= tagging it by a specific > tag? For example,=C2=A0 want to tag an item with the :PROJECT: tag and wh= en I do that, change the TODO to > PROJECT too. > > I know it is possible somehow, given the flexibility of elisp and org, bu= t I'd like to know if org > provides any machinery/API that makes it easier/straightfoward (maybe a h= ook?) The other way already works. If you set a task todo keyword to PROJECT you can automatically add a PROJECT tag. See org-todo-state-tags-triggers to set that up. -Bernt