[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: Logbook drawer and org-adapt-indentation with value headline-da
From: |
Ihor Radchenko |
Subject: |
Re: Bug: Logbook drawer and org-adapt-indentation with value headline-data [9.4 (9.4-7-g3eccc5-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200921/)] |
Date: |
Tue, 27 Apr 2021 15:04:34 +0800 |
Bastien <bzg@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