From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: capture question Date: Thu, 11 Aug 2011 19:32:21 -0400 Message-ID: <87mxff34oq.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qrejw-0005hM-Nc for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 19:32:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qrejo-0000ei-Hk for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 19:32:40 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:10388 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qrejo-0000dR-Fm for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 19:32:32 -0400 In-Reply-To: (Mark Scala's message of "Thu, 11 Aug 2011 11:52:06 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mark Scala Cc: emacs-orgmode@gnu.org Mark Scala writes: > Hi,=C2=A0 > > I've been using capture for, among other things, capturing > interruptions to clocked tasks.=C2=A0 For this, I use something like the > following template: > > ("i" "interruption" entry (file "refile.org") "A TEMPLATE HERE" > :clock-in t :clock-resume t) > > One thing that has been bothering me is that there are really two > types of interruption that deserve different treatment.=C2=A0 Sometimes > the interrupting task is completed by the time I file it with C-c > C-c.=C2=A0 Other times it is not.=C2=A0 But both types are filed with the= todo > keyword STARTED.=C2=A0 For those (and only those) interruptions that are > finished by the time I file them, I'd like them to have the keyword > DONE automatically.=C2=A0 Has anyone encountered this case and found a > solution? Hi Mark, Just add one step to mark the task DONE before you file it away. C-c C-t d (mark DONE) C-c C-c (file it and stop the clock) How is org-mode supposed to divine that this task you are capturing is DONE when you file it but another one isn't? You'll have to indicate somehow how you differentiate between these capture tasks. If you can do that programmatically maybe you can add a capture hook which marks the task done when you file it. Regards, Bernt