From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomas Grigera Subject: Problem with noweb-ref property Date: Thu, 29 Dec 2011 16:13:40 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgLQ8-0000g5-3B for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 14:13:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgLQ6-00089j-L1 for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 14:13:43 -0500 Received: from mail-pw0-f41.google.com ([209.85.160.41]:35006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgLQ6-00089F-9z for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 14:13:42 -0500 Received: by pbdd2 with SMTP id d2so8658927pbd.0 for ; Thu, 29 Dec 2011 11:13:40 -0800 (PST) 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: emacs-orgmode@gnu.org Hi list, This is my first post, so just let me say first that I have been using org-mode for 10 months or so and I love it. It's an exceptional package, and before I ask my question I would just like to thank Carsten, Bastien, and the community for the great work and for sharing. Now my question: I am trying to extract code from a .org file by tangling with noweb-style references. As I understand from the manual, if I write <> in a code block, the line will be expanded with the code block named foo. This name I can set with #+NAME: or with the :noweb-ref header argument. Both ways work for me, except that I cannont set the :noweb-ref argument through a property. The following example is almost verbatim from the manual: #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh <> #+END_SRC * the mount point of the fullest disk ** query all mounted disks #+HEADER: :noweb-ref fullest-disk #+BEGIN_SRC sh df \ #+END_SRC ** strip the header row :PROPERTIES: :noweb-ref: fullest-disk :END: #+BEGIN_SRC sh :noweb yes |sed '1d' \ #+END_SRC If I understand correctly, tangling should produce a file which is a concatenation of the two code blocks. However, when I do org-babel-tangle, only the first block is inserted. Am I doing something wrong? I'm with emacs 23.2.1 and org-mode 7.8.02 Thanks in advance, Tomas