emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Florian Lindner <mailinglists@xgm.de>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: log-done and org-after-todo-state-change-hook
Date: Wed, 27 Apr 2022 21:46:54 +0200	[thread overview]
Message-ID: <5a9ce1f6-0b28-6144-7300-836146b30c40@xgm.de> (raw)

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


             reply	other threads:[~2022-04-27 19:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-27 19:46 Florian Lindner [this message]
2022-04-28 14:32 ` log-done and org-after-todo-state-change-hook Ihor Radchenko

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a9ce1f6-0b28-6144-7300-836146b30c40@xgm.de \
    --to=mailinglists@xgm.de \
    --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 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).