Hello,
Nicolas Richard theonewiththeevill...@yahoo.fr writes:
I take the opportuinty to ask if we should try and make this function
use org-element instead.
My naïve approach doesn't work:
#+begin_src emacs-lisp
(save-excursion
(org-back-to-heading t)
(let ((elt
Hi Nicolas,
Nicolas Goaziou n.goaz...@gmail.com writes:
Of course, `org-element-at-point' can parse headlines, but if speed is
a factor, since headline syntax is not context-dependent, it is often
worth considering using regexps.
I don't know if speed is terribly important here, but since my
Hi Nicolas,
Nicolas Goaziou n.goaz...@gmail.com writes:
Of course, `org-element-at-point' can parse headlines, but if speed is
a factor, since headline syntax is not context-dependent, it is often
worth considering using regexps.
I don't know if speed is terribly important here, but since my
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