emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <dandavison7@gmail.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: emacs-orgmode@gnu.org, andy <andy.choens@gmail.com>
Subject: Re: [babel] Problem using noweb
Date: Wed, 09 Feb 2011 20:27:29 +0000	[thread overview]
Message-ID: <m1wrl9uf66.fsf@94.196.111.224.threembb.co.uk> (raw)
In-Reply-To: <87y65pf2s5.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 09 Feb 2011 19:04:10 +0000")

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> andy <andy.choens@gmail.com> 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*
>>   <<test-block>>
>>   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!

> 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! ;)

  reply	other threads:[~2011-02-09 20:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09 15:33 [babel] Problem using noweb andy
2011-02-09 19:04 ` Eric S Fraga
2011-02-09 20:27   ` Dan Davison [this message]
2011-02-09 20:57     ` andy
2011-02-09 23:11     ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1wrl9uf66.fsf@94.196.111.224.threembb.co.uk \
    --to=dandavison7@gmail.com \
    --cc=andy.choens@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).