emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Unable to clock in on task


From: Phil Rooke
Subject: Re: [Orgmode] Unable to clock in on task
Date: Tue, 27 Oct 2009 15:06:36 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin)

Nick Dokos <address@hidden> writes:

> This does look like a bug: org-resolve-clock calls org-files-list which
> does not know about the "agenda files list in a file" convention.  It
> should probably call the function org-agenda-files instead of
> org-files-list. org-files-list is only used in this one place and should
> probably be deleted.
>
> Try this patch:
>
> diff --git a/lisp/org-clock.el b/lisp/org-clock.el
> index ea23a8d..2ce2f22 100644
> --- a/lisp/org-clock.el
> +++ b/lisp/org-clock.el
> @@ -737,7 +737,7 @@ non-dangling (i.e., currently open and valid) clocks."
>    (interactive "P")
>    (unless org-clock-resolving-clocks
>      (let ((org-clock-resolving-clocks t))
> -      (dolist (file (org-files-list))
> +      (dolist (file (org-agenda-files))
>       (let ((clocks (org-find-open-clocks file)))
>         (dolist (clock clocks)
>           (let ((dangling (or (not (org-clock-is-active))

That works for me.  Thanks a lot.

Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]