[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New note not included in org-element-parse-buffer result
From: |
Ihor Radchenko |
Subject: |
Re: New note not included in org-element-parse-buffer result |
Date: |
Tue, 09 May 2023 09:55:31 +0000 |
bvchgvbt@mail.com writes:
> I'm attempting my first non-trivial elisp and seem to be falling at the
> first hurdle.
>
> Specifically, I am using (org-trigger-hook) to inspect a TODO->DONE state
> change, and am finding that the note that I insert when the state change
> is logged is not present in the result of a call to
> (org-element-parse-buffer).
The note might indeed not yet be inside the Org buffer.
`org-add-log-setup' arranges the note to be written _after_ current
command finishes (`post-command-hook').
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>