|
From: | Tobias Getzner |
Subject: | Re: [O] «Macro» expansion in source blocks; code-sharing between blocks |
Date: | Thu, 18 Sep 2014 13:26:22 +0000 (UTC) |
User-agent: | Pan/0.140 (Chocolate Salty Balls; GIT d447f7c /tmp/yaourt-tmp-seb/aur-pan-git/pan2) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |