It may be fragile, but you can try let-binding
(org-inhibit-logging 'note)
around elisp org-todo call
Hi Ihor,
If I understand correctly, this will prevent the addition of a note; I have already found a way to do this. Please let me know if I am mistaken.
What I am looking for is a way to programmatically, without user input, change the state and add an automatic note.
If I understand correctly, org-mode implements the addition of the note through the function `org-add-log-note` and `org-store-log-note`, and I was really hoping I wouldn't have to sift through these two functions to figure out and possibly reimplement all the logic of how it finds the place where to add the note so I can insert the string there myself.
Sincerely,
-Aldric