emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nested blocks in org


From: Ihor Radchenko
Subject: Re: nested blocks in org
Date: Wed, 06 Mar 2024 10:34:53 +0000

mahmood sheikh <mahmod.m2015@gmail.com> writes:

> with the given minimal example:
> ```
> #+begin_parent
> #+begin_child
> #+end_child
> #+end_parent
> ```
> the code
> ```lisp
> (org-block-map (lambda () (message "elem: %s" (org-element-at-point))))
> ```
> goes through only the parent element and doesnt run the lambda on the
> child block
> the docstring of org-block-map says it iterates through src blocks but
> it also goes through special blocks, albeit not nested ones, i
> might've confused it for org-element-map as im not sure about the
> later functions behavior.

This is a bug in `org-block-map'.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]