From: Ihor Radchenko <yantar92@gmail.com>
To: Florian Lindner <mailinglists@xgm.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: log-done and org-after-todo-state-change-hook
Date: Thu, 28 Apr 2022 22:32:28 +0800 [thread overview]
Message-ID: <87zgk56zyb.fsf@localhost> (raw)
In-Reply-To: <5a9ce1f6-0b28-6144-7300-836146b30c40@xgm.de>
Florian Lindner <mailinglists@xgm.de> writes:
> 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:
> ...
> 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?
There is currently no hook running after you store note.
However, you can add an :after advice to org-store-log-note.
Best,
Ihor
prev parent reply other threads:[~2022-04-28 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-27 19:46 log-done and org-after-todo-state-change-hook Florian Lindner
2022-04-28 14:32 ` Ihor Radchenko [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
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=87zgk56zyb.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mailinglists@xgm.de \
/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).