From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy Subject: Re: [babel] Problem using noweb Date: Wed, 09 Feb 2011 15:57:23 -0500 Message-ID: <4D52FFB3.5000008@gmail.com> References: <4D52B3CC.5060701@gmail.com> <87y65pf2s5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=59977 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnH6U-0005Ik-0c for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 15:57:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnH6R-000724-RV for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 15:57:32 -0500 Received: from mail-vw0-f41.google.com ([209.85.212.41]:64190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnH6R-00071l-PB for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 15:57:31 -0500 Received: by vws10 with SMTP id 10so376012vws.0 for ; Wed, 09 Feb 2011 12:57:31 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: emacs-orgmode@gnu.org On 02/09/2011 03:27 PM, Dan Davison wrote: > Eric S Fraga writes: > >> andy writes: >> >>> I want to take advantage of babel's noweb capabilities, but I can't seem >>> to get it to work. > [...] >>> * Foo >>> ** Bar >>> #+src_name: bar >>> #+begin_src R :noweb yes :session *R* >>> <> >>> print("I am here") >>> a >>> #+end_src >>> >>> * test-block >>> #+src_name: test-block >>> #+begin_src R :session *R* >>> a <- c(1,2,3,4,5) >>> #+end_src >>> > Hey Andy, > > I hope this didn't detain you too long, because you were basically doing > nothing wrong. Except... #+srcname has no underscore in it! > That got it. Thanks. I am feeling a little silly right now. >> I believe that you need to specify noweb on every source block, >> including the one you wish to include. > Nope. :) Only bar needs :noweb above. > > Dan > >> That's what I had to do, in any >> case, if I remember correctly... haven't tried it on your code as my >> train is pulling into the station and I have to run! ;) -- I climb things up so I can ski them DOWN!