Hi Ihor:
So if we want to determine the Org type of an element outside of an Org buffer (when using org-type minor modes for example), how would we change this 'let' code:
(let* ((context
;; Only consider supported types, even if they are not
;; the closest one.
(org-element-lineage
;; Next line can trigger an error when `looking-at' is called
;; with a `nil' value of `org-complex-heading-regexp'.
(org-element-context)
'(clock footnote-definition footnote-reference headline
inlinetask link timestamp)
t))
(type (org-element-type context))
...)
Thanks,
Bob