Hello,

John Kitchin <jkitc...@andrew.cmu.edu> writes:

> hm. We must have different use cases in mind. Currently I am using
>
> (save-excursion
>                       (goto-char
>                        (org-element-property :begin headline))
>                       (org-entry-properties))
>
> to get the properties. I thought there would be a way to get those from
> the parse tree to avoid the excursion (I use this to index a few
> thousand org-files so I want it to be fast).

If you have the full parse tree and you're only interested in local
properties (i.e., neither CATEGORY or special properties):

  (org-element-map headline 'node-property
    (lambda (p)
      (cons (org-element-property :key p)
            (org-element-property :value p))))


Regards,

-- 
Nicolas Goaziou

Reply via email to