From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Getzner Subject: =?UTF-8?B?UmU6IMKrTWFjcm/CuyBleHBhbnNpb24gaW4gc291cmNlIGJsb2Nr?= =?UTF-8?B?czsgY29kZS1zaGFyaW5nIGJldHdlZW4gYmxvY2tz?= Date: Thu, 18 Sep 2014 13:26:22 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUbjf-0006Nz-CU for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 09:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUbjW-0001uD-Lz for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 09:26:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:34782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUbjW-0001sm-Fl for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 09:26:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XUbjK-0001Sn-Sx for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 15:26:38 +0200 Received: from g228190172.adsl.alicedsl.de ([92.228.190.172]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2014 15:26:38 +0200 Received: from tobias.getzner by g228190172.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2014 15:26:38 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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