From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: babel, header arguments. Date: Fri, 21 Nov 2014 10:36:33 -1000 Message-ID: References: <8761ec2vsp.fsf@gmail.com> <86389emcxa.fsf@example.com> <87h9xsibxv.fsf@gmail.com> <87bno0iadl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xruww-0004Ob-2h for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 15:37:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xruwp-0003aZ-Qw for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 15:37:02 -0500 Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:40864) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Xruwp-0003Zu-Jg for emacs-orgmode@gnu.org; Fri, 21 Nov 2014 15:36:55 -0500 In-Reply-To: <87bno0iadl.fsf@gmail.com> (jenia ivlev's message of "Fri, 21 Nov 2014 15:09:26 -0500") 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: "jenia.ivlev" Cc: emacs-orgmode@gnu.org jenia.ivlev@gmail.com (jenia.ivlev) writes: > tsd@tsdye.com (Thomas S. Dye) writes: > >> Aloha, >> >> jenia.ivlev@gmail.com (jenia.ivlev) writes: >> >>> Also, what if I want to import the actual function defintion into >>> another src block: >>> >>> #+begin_src scheme >>> (+ (my-plus 3 4) 1) >>> #+end_src >>> something here that import the previous function definitions >>> >>> Is that possible? >> >> Yes, see section 14.10 Noweb reference syntax in the manual. >> >> You'll have something that looks like this: >> >> #+header: :noweb yes >> #+begin_src scheme >> <> >> (+ (previous-function 3 4) 1) >> #+end_src >> >> hth, >> Tom > > What do you mean? <> should be replaced > with the actual function definition? But I use babel-mode so that I can > interlace code in a natural language document. I want these src blocks > to be separate. > > Sorry, it refers to the name of the source code block. ,------------------------------------------------------------------------- | The =E2=80=9Cnoweb=E2=80=9D (see ) Li= terate=20=20=20=20=20=20=20=20=20 | Programming system allows named blocks of code to be referenced by using | the familiar Noweb syntax:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 | <>=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 `------------------------------------------------------------------------- hth, Tom --=20 Thomas S. Dye http://www.tsdye.com