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