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: Mon, 13 May 2024 12:03:28 +0000

Ihor Radchenko <yantar92@posteo.net> writes:

> 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'.

Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=62356cb44

-- 
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]