Re: nested blocks in org

2024-05-13 Thread Ihor Radchenko
Ihor Radchenko writes: > mahmood sheikh 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 p

Re: nested blocks in org

2024-03-06 Thread Ihor Radchenko
mahmood sheikh 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

Re: nested blocks in org

2024-03-05 Thread mahmood sheikh
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

Re: nested blocks in org

2024-02-17 Thread Ihor Radchenko
[ Adding Org list back to CC; please use Reply All or wide reply to keep the discussion public ] mahmood sheikh writes: > consider the following block > ``` > #+begin_solution > #+begin_src sql > SELECT > CONCAT(c.first_name, ' ', c.family_name) AS name, c.customer_id, > ... > #+end_solu

Re: nested blocks in org

2024-02-17 Thread Ihor Radchenko
mahmood sheikh writes: > can you point me in the right direction of getting org mode to recognize > nested blocks, like code highlighting for src blocks that are within > another special block? May you please give an example of what you have in mind? -- Ihor Radchenko // yantar92, Org mode con

nested blocks in org

2024-02-15 Thread mahmood sheikh
can you point me in the right direction of getting org mode to recognize nested blocks, like code highlighting for src blocks that are within another special block? and getting org-element-map to iterate through both a parent and its child blocks all the same? could modifying `org-block-regexp` to