From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Issue with correctly resuming interrupted timer Date: Sat, 24 Jul 2010 01:59:06 -0400 Message-ID: <87d3udv2s5.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=34465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcXle-0006hk-3b for emacs-orgmode@gnu.org; Sat, 24 Jul 2010 01:59:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcXlc-0002T7-Pn for emacs-orgmode@gnu.org; Sat, 24 Jul 2010 01:59:25 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:57193) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcXlc-0002Rr-OD for emacs-orgmode@gnu.org; Sat, 24 Jul 2010 01:59:24 -0400 In-Reply-To: (Benjamin Beckwith's message of "Fri, 23 Jul 2010 08:59:55 -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: Benjamin Beckwith Cc: emacs-orgmode@gnu.org Benjamin Beckwith writes: > I have an issue with my particular setup when using org-capture. Here > is my relevant capture template: > > (setq org-capture-templates > '(("t" "todo" entry > (file "~/Documents/Org/Refile.org") > "* TODO %?\n %U\n %a" :clock-in t :clock-resume t)) > > I have all tasks go to the file Refile.org as shown above. They are > are first-level TODOs. Say I have a list of tasks such as > > * TODO A (Currently clocked in) > * TODO B > * TODO C > > Also let the point be on the task B line. Now if I call org-capture > and store a task, B become the task that get clocked in after > completing the capture. Which gives me: > > * TODO A > * TODO B (Now clocked in) > * TODO C > * TODO New Capture > > I believe that the issue is within org-capture-finalize and the call > to org-with-point-at, but I have exceeded my elisp debugging skills > and need help. > > I am using the very latest org-mode master with emacs 23.1 on windows. > Any ideas? I can confirm this bug (sort of). My newly 'New Capture' task keeps clocking after filing instead of task 'B'. It seems it works okay if you are clocking a task in a different buffer from the refile.org target file for the capture. In my case when I finish the capture with C-c C-c the clock stays on the newly captured task instead of moving back to the previously clocking task in refile.org. If I clock a task in todo.org the clock correctly switches to the capture task in refile.org and back to the todo.org task when I file the captured task. I'll look into this more on Sunday if nobody beats me to it. -Bernt