Q: Which function does org-mode
use to log a note with a
TODO
state change?
Background
org-mode
provides the option of adding a note when
tracking TODO
state changes.
That's great.
However, org
is also cavalier about changing my window
configuration when it adds notes (i.e., it temporarily changes the
frame to a two-window layout), which is infuriating.
I've resolved the issue in a different setting when dealing with
capture
templates by
tracking down the offending function
(org-capture-place-template
) and commenting out the offending
line that changes my window configuration.
Problem
I cannot find the analogous function for dealing with todo state
changes. The org
source code is sometimes rather baroque, and
I've gone through the source for org-todo
without finding the
relevant call. I suspect it's the same problem with a hard-coded
change to the window configuration that I need to comment out.
So: what function does org
use to log the NOTE with a TODO
state change?
org-add-log-note
topost-command-hook
withinorg-add-log-setup
fromorg-todo
.(delete-other-windows)
line resolves the window-spamming problem.