Nicolas Richard <theonewiththeevill...@yahoo.fr> writes: > I don't know if speed is terribly important here, but since my suggested > approach uses a loop instead of recursion, it ends up being faster for > nested headlines (more than 5 levels). This obviously could be fixed in > the initial approach too. > > Since we know where point is, we could also use > (org-element-headline-parser nil t) instead of (org-element-at-point). > That's a tiny bit faster.
`org-element-headline-parser' is a bit low-level. Also, it will still retrieve all entry properties, which explains why regexps are faster. Anyway, it doesn't matter much if speed is not an issue. Regards, -- Nicolas Goaziou