Bastien <b...@gnu.org> writes: > This should be fixed with commit 730a05f78.
> ;; FIXME: when storing a note in a LOGBOOK drawer, > ;; `org-store-log-note' needs to insert a new line before > ;; the newly inserted note, thus the `type' at point will > ;; return `paragraph' instead of the expected `drawer', so > ;; we need to manually detect the drawer. Maybe you can use (eq (org-element-type (car (org-element-lineage element))) 'drawer) A quick test showed that org-element-lineage can detect drawer even when element is a note inside LOGBOOK drawer. Best, Ihor