Reference blog entry showing how to programmatically add Org notes

The current implementation of `db/org-update-headline-log-note` seems to be
fine, but if it turns out to be broken, we can try the approach of Sacha Chua.
This commit is contained in:
Daniel - 2023-02-14 16:30:10 +01:00
parent 6c17b944e2
commit fb60b22c5e
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 4 additions and 1 deletions

View File

@ -1058,7 +1058,10 @@ cache if that's in use."
;; Update headline
(org-edit-headline new-headline)
;; Store note manually (I tried using `org-add-log-note', but did not succeed …)
;; Store note manually (I tried using `org-add-log-note', but did not
;; succeed …); maybe use the logging function from
;; https://sachachua.com/blog/2022/11/logging-sent-messages-to-org-mode-with-message-sent-hook/
;; instead?
(goto-char (org-log-beginning 'create))
(indent-according-to-mode)
(insert "- Note taken on ")