emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Benjamin Beckwith <bnbeckwith@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Issue with correctly resuming interrupted timer
Date: Sat, 24 Jul 2010 01:59:06 -0400	[thread overview]
Message-ID: <87d3udv2s5.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <AANLkTimAMavZAViDyfJ446ez9qVu5MAc1M65A1rBgG22@mail.gmail.com> (Benjamin Beckwith's message of "Fri, 23 Jul 2010 08:59:55 -0400")

Benjamin Beckwith <bnbeckwith@gmail.com> 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

  reply	other threads:[~2010-07-24  5:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23 12:59 Issue with correctly resuming interrupted timer Benjamin Beckwith
2010-07-24  5:59 ` Bernt Hansen [this message]
2010-07-24 14:20 ` [PATCH] Fix clocking on capture completion Bernt Hansen
2010-07-24 18:41   ` Viktor Rosenfeld
2010-07-24 18:45     ` Bernt Hansen
2010-07-24 22:09       ` Viktor Rosenfeld

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=87d3udv2s5.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=bnbeckwith@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).