From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: [babel] noweb does not work (as expected) Date: Mon, 9 Nov 2009 12:47:48 +0900 Message-ID: <200911091247.48775.torsten.wagner@googlemail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7LEV-0005Ar-GN for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 22:47:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7LEQ-0005AD-H3 for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 22:47:58 -0500 Received: from [199.232.76.173] (port=59816 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7LEQ-0005AA-BY for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 22:47:54 -0500 Received: from mail-yx0-f191.google.com ([209.85.210.191]:42102) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7LEQ-0002OC-0o for emacs-orgmode@gnu.org; Sun, 08 Nov 2009 22:47:54 -0500 Received: by yxe29 with SMTP id 29so2640186yxe.14 for ; Sun, 08 Nov 2009 19:47:52 -0800 (PST) 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 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 <> <> <> <> <> #+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 <> variable. I thouht it will be replaced by the complete source block content during tangle. Any ideas ? Thanks, Torsten