emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* log-done and org-after-todo-state-change-hook
@ 2022-04-27 19:46 Florian Lindner
  2022-04-28 14:32 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Lindner @ 2022-04-27 19:46 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I have an org-todo-keywords like "DONE(d!)" which logs a time stamp 
everytime that todo is reached.

I also use org-after-todo-state-change-hook to copy that node somewhere 
else, as soon as it is finished.

My problem now is that the logging seems to happen after hook, which 
made me end up with a original node:

DONE letzter note
:LOGBOOK:
- State "DONE"       from "TODO"       [2022-04-27 Mi 21:42]
:END:
[2022-04-27 Mi]


which is copied to

** DONE letzter note
[2022-04-27 Mi]

How can make the hook to be executed after the logging of done or some 
other way to have the log entry included in the copy?

Thanks!
Florian


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-28 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 19:46 log-done and org-after-todo-state-change-hook Florian Lindner
2022-04-28 14:32 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).