From fb60b22c5e91a8c495d0ff6c52934b0c04b33183 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Tue, 14 Feb 2023 16:30:10 +0100 Subject: [PATCH] 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. --- site-lisp/db-org.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 6bf448e..46d4e66 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -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 ")