Bastien writes: > > I fixed the problem with `org-clock-state'. This should be `org-state'. > > `state' is a local variable in many org.el functions, I renamed it to > `org-state' in org-clock.el and in "caller" sexp from org.el. > Attached please find a patch that fixes the docstring of org-after-todo-state-change-hook to reflect this change. Best, Matt