From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: =?UTF-8?B?UmU6IMKrTWFjcm/CuyBleHBhbnNpb24gaW4gc291cmNlIGJsb2Nr?= =?UTF-8?B?czsgY29kZS1zaGFyaW5nIGJldHdlZW4gYmxvY2tz?= Date: Thu, 18 Sep 2014 15:01:37 +0100 Message-ID: <87bnqdqb7i.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUcHZ-0000nq-7u for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 10:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUcHR-0003AC-IK for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 10:02:01 -0400 Received: from mail-db3on0129.outbound.protection.outlook.com ([157.55.234.129]:27249 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUcHR-000387-AT for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 10:01:53 -0400 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: Tobias Getzner Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thursday, 18 Sep 2014 at 13:26, Tobias Getzner wrote: > 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=20 > somehow: Yes, and you almost got it right with your syntactic expansion: #+begin_src org ,* Syntactic expansion ,#+name: setup_fu ,#+begin_src sh :noweb yes echo 2 ,#+end_src ,#+begin_src sh :results raw :noweb yes echo 1 <> echo 3 ,#+end_src ,#+results: 1 2 3 #+end_src Org src blocks can reference other src blocks. Note the ":noweb yes" option and the use of <<...>>. =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-366-gb2fc= a7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlQa5cIACgkQyJGT2P/89n2uTQCfWSzxyZNzx7RX9wcgjPGrM8D3 B/IAoI8i5PsQuVP0YvQ4/evxAhHr8yvd =g6Ra -----END PGP SIGNATURE----- --=-=-=--