On Thu, 18 Sep 2014 13:17:14 +0000, Tobias Getzner wrote:
> Are there any convenient inline-expansion methods I might have
> overlooked?
To illustrate, I was wondering if any of the following is feasible
somehow:
* Semantic expansion
#+name setup_fu
#+begin_src sh :results raw
echo 2
#+end_src
#+begin_src sh :results raw
echo 1
echo {{{call_setup_fu()}}} ← some sort of escape syntax
echo 3
#+end_src
#+results:
1
2
3
* Syntactic expansion
#+begin_macro setup_fu
echo 2
#+end_macro
#+begin_src sh :results raw
echo 1
{{{setup_fu()}}}
echo 3
#+end_src
#+results:
1
2
3