From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Emacs-orgmode Digest, Vol 137, Issue 4 Date: Thu, 06 Jul 2017 09:48:33 +0100 Message-ID: <8760f6eyse.fsf@t3610> References: <6982552ae62d463c859786901f4645ae@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga 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]:40153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dT2Sv-0004pR-H7 for emacs-orgmode@gnu.org; Thu, 06 Jul 2017 04:48:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dT2Sr-0001LJ-Kt for emacs-orgmode@gnu.org; Thu, 06 Jul 2017 04:48:49 -0400 Received: from mail-eopbgr00138.outbound.protection.outlook.com ([40.107.0.138]:44002 helo=EUR02-AM5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dT2Sr-0001Jt-6s for emacs-orgmode@gnu.org; Thu, 06 Jul 2017 04:48:45 -0400 In-Reply-To: <6982552ae62d463c859786901f4645ae@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (edgar@openmail.cc's message of "Thu, 6 Jul 2017 02:25:56 +0000") 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" To: emacs-orgmode@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Philosophically, #+call: or call_ are very different to noweb. The latter is really only about insertion of code as is somewhere else and it can be nested (see contrived example attached). The former is about invoking a babel src block with particular arguments and so is much more flexible. That block could of course include noweb elements: again see example. Export the org file to an ascii buffer (C-c C-e t A) and you'll see the code expansions due to noweb and the result of calling a src block. -- : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8 --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=t.org #+name: one #+begin_src octave :noweb yes a = 1 #+end_src #+name: two #+begin_src octave :noweb yes <> b = 2 #+end_src #+name: three #+begin_src octave :noweb yes <> a+b #+end_src #+results: three : 3 The results of calling three are call_three(). --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWV35YQAKCRDIkZPY//z2 fTDzAJ4pX4oLwWo2UlmP4sq6ZfdtwvRkzgCfartvlLY5YcxpG8/5sZR1HEq/APc= =GXY6 -----END PGP SIGNATURE----- --==-=-=--