Re: Evaluate an org-mode snippet in a code block

2025-06-17 Thread jman
Max Nikulin writes: #+name: src-org-example #+header: :exports code #+BEGIN_EXAMPLE org ,* Meeting with friends :PROPERTIES: :LOCATION: At Stacy's :DESCRIPTION: Be on time :END: <2025-05-28 Wed 20:00-22:00> #+END_EXAMPLE #+header: :exports results :results raw :wrap example #+begin_src elisp :

Re: Evaluate an org-mode snippet in a code block

2025-06-17 Thread Christian Moe
Max Nikulin writes: > #+name: src-org-example > #+header: :exports code > #+BEGIN_EXAMPLE org > ,* Meeting with friends > :PROPERTIES: > :LOCATION: At Stacy's > :DESCRIPTION: Be on time > :END: > <2025-05-28 Wed 20:00-22:00> > #+END_EXAMPLE > > #+header: :exports results :results raw :wrap exampl

Re: Evaluate an org-mode snippet in a code block

2025-06-16 Thread Max Nikulin
On 17/06/2025 04:32, jman wrote: I just wanted to write in a tutorial the following: #+BEGIN_SRC org ,* Meeting with friends :PROPERTIES: :LOCATION: At Stacy's :DESCRIPTION: Be on time :END: <2025-05-28 Wed 20:00-22:00> #+END_SRC Here is the result: #+BEGIN_EXAMPLE BEGIN:VCALENDAR #+name: sr

Re: Evaluate an org-mode snippet in a code block

2025-06-16 Thread jman
Christian Moe writes: Org-icalendar-export-to-ics doesn't, but works from the assumption that you're in a buffer visiting a file. So your elisp function might perhaps first copy the src block into a buffer, unescape the escaped lines, and save the file somewhere, before calling org-icalendar-ex

Re: Evaluate an org-mode snippet in a code block

2025-06-16 Thread Christian Moe
jman writes: > I'd like to call an arbitrary elisp function over an org-mode snippet > in a code block identified by BEGIN_SRC and END_SRC. > Specifically, I want to run `org-icalendar-export-to-ics` over the following > org-mode agenda entry: > > #+NAME: run-me > #+BEGIN_SRC org :results output

Evaluate an org-mode snippet in a code block

2025-06-15 Thread jman
Hello, I'd like to call an arbitrary elisp function over an org-mode snippet in a code block identified by BEGIN_SRC and END_SRC. Specifically, I want to run `org-icalendar-export-to-ics` over the following org-mode agenda entry: #+NAME: run-me #+BEGIN_SRC org :results output ,* Meet friend