Hello, Brett Viren <b...@bnl.gov> writes:
> However this method only works for a very simple org document. I'm > successfully filtering out the :parent properties of (most of) the > elements but as soon as my document produces a plain text element like: > > #("Text" 0 4 (:parent #1)) > > then two problems occcur: > > First, I'm simply failing to see how to set this :parent property to nil > like I do with the others. Like any other construct, with `org-element-put-property'. > (let* ((tree (org-element-parse-buffer 'object nil))) > (org-element-map tree org-element-all-elements You're only mapping over elements. You need to add `org-element-all-objects' and `plain-text'. Regards, -- Nicolas Goaziou