From: Alexis Roda <alexis.roda.villalonga@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Triggering clock in/out from org state change and progress logging
Date: Mon, 01 Sep 2014 19:32:13 +0200 [thread overview]
Message-ID: <5404AD9D.30101@gmail.com> (raw)
In-Reply-To: <53FC68DE.3000500@gmail.com>
Hi list,
after struggling a bit with edebug (too many things to learn) I have
traced what the problem is. For the archives:
State-change logging is deferred until the command finishes and is
implemented by the function 'org-add-log-setup' adding the function
'org-add-log-note' to the hook 'post-command-hook'. The details of the
note are stored in global variables 'org-log-note-xxx'.
That implementation prevents recursive calls to 'org-todo' (that's what
my code does in order the pause the active task) from logging both the
paused and the started log messages.
'org-add-log-note' will be called only once since the hook won't accept
duplicated entries. Anyway, the innermost call to 'org-add-log-setup'
will overwrite the variables 'org-log-note-xxx' with the details of the
note being paused.
The outcome is that only the state change for the paused note is being
logged.
Now that I know what the problem is I only have to figure a workaround.
Any clue?
Regards
prev parent reply other threads:[~2014-09-01 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 11:00 Triggering clock in/out from org state change and progress logging Alexis Roda
2014-09-01 17:32 ` Alexis Roda [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5404AD9D.30101@gmail.com \
--to=alexis.roda.villalonga@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.