org-agenda no longer clocks out and in

Table of Contents

For years my workflow has centered in org-agenda and I would go from one clocked item to the next. For instance, I would be clocked into my “Emails” task, which never closes, and then eventually move down in the agenda to “Task B”. Then I hit C-x TAB to clock in. It correctly queries for a comment on the task I’m leaving but no longer clocks me in to the new task as I’d asked. Is this a bug or am I missing a new setting?

Org mode version 9.4.6 (9.4.6-gf70e36

Comparing traces

My minimal loadup doesn’t exhibit the problem. So, tracing the function “org-agenda-clock-in” that my C-x TAB is bound to, I see this.

On the broken one I see the following:

  ======================================================================
1 -> (org-agenda-clock-in nil)
1 <- org-agenda-clock-in: !non-local\ exit!

Whereas on the clean working one I see:

  ======================================================================
1 -> (org-agenda-clock-in nil)
1 <- org-agenda-clock-in: 0

But find-grep doesn’t find anything in my dependencies that matches “non-local”. This looks likely to be related to the original problem. Any idea how I can find the source of this !non-local? This is my first time using emacs function tracing.

A “Solution”

The quick solution was simply to do the equivalent of the following:

(setq org-log-note-clock-out nil)

I did this in my rather large :custom section in my (use-package org) declaration.

Tory Anderson avatar
Tory Anderson
Web App Engineer, Digital Humanist, Researcher, Computer Psychologist