emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] noweb does not work (as expected)
@ 2009-11-09  3:47 Torsten Wagner
  2009-11-09  4:33 ` Thomas S. Dye
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Torsten Wagner @ 2009-11-09  3:47 UTC (permalink / raw)
  To: Org Mode Mailing List

Hi everyone,

I tried to use the noweb-syntax to tangle all the pieces of source code blocks 
together as proposed by Tom.

However, for some reasons it does not work. 
I notice there are two different syntax for noweb. One propsed on worg and the 
other in examples here in the mailing list. Which one will be correct ? or are 
both correct but with different purpose ?

I used the latest git-version and even tried the branch noweb-evaluate

What I used was a source code block at the end of my org-file like:
All other blocks are defined above.

#+srcname: makefile()
#+begin_src python :tangle simulate_ofdm :exports none
  <<block1>>
  <<block2>>
  <<block3>>
  <<block4>>
  <<block5>>
#+end_src
#+resname: makefile

However
the tangled file results only in 

#!/usr/bin/env python
# generated by org-babel-tangle
# [[file:~/test_noweb.org::*Result][makefile]]

# makefile ends here

An execution of block shows nothing on the *Shell output* buffer
It seems somehow I missunderstand which part of a block will replace a 
<<noweb>>  variable. I thouht it will be replaced by the complete source block 
content during tangle. 

Any ideas ?

Thanks,

Torsten

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-11-10  5:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09  3:47 [babel] noweb does not work (as expected) Torsten Wagner
2009-11-09  4:33 ` Thomas S. Dye
2009-11-09  7:38   ` Torsten Wagner
2009-11-09 16:32     ` Thomas S. Dye
2009-11-10  1:40       ` Torsten Wagner
2009-11-09  4:41 ` Dan Davison
2009-11-09  7:16   ` Torsten Wagner
2009-11-09 16:04     ` Dan Davison
2009-11-10  1:51       ` Torsten Wagner
2009-11-10  5:33         ` Eric Schulte
2009-11-10  3:02 ` [babel] (solved) " Torsten Wagner

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).