From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: org-babel-tangle ignores noweb-ref property Date: Tue, 3 Jan 2017 20:29:32 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_CY4PR15MB16223E5694BEACDFE7D90875EB6E0CY4PR15MB1622namp_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOViE-00044F-NS for emacs-orgmode@gnu.org; Tue, 03 Jan 2017 15:29:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOViB-0000Lv-K9 for emacs-orgmode@gnu.org; Tue, 03 Jan 2017 15:29:38 -0500 Received: from blu004-omc4s33.hotmail.com ([65.55.111.172]:56713) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOViB-0000Lo-AW for emacs-orgmode@gnu.org; Tue, 03 Jan 2017 15:29:35 -0500 Content-Language: en-US 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" To: "emacs-orgmode@gnu.org" --_000_CY4PR15MB16223E5694BEACDFE7D90875EB6E0CY4PR15MB1622namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, When I use org 8.3.6, it works correctly, but when I use org 9.0.3, it seem= s org-babel-tangle ignores noweb-ref property. For example, using the examp= le from http://orgmode.org/manual/noweb_002dref.html: #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh <> #+END_SRC * the mount point of the fullest disk :PROPERTIES: :noweb-ref: fullest-disk :END: ** query all mounted disks #+BEGIN_SRC sh df \ #+END_SRC ** strip the header row #+BEGIN_SRC sh |sed '1d' \ #+END_SRC ** sort by the percent full #+BEGIN_SRC sh |awk '{print $5 " " $6}'|sort -n |tail -1 \ #+END_SRC ** extract the mount point #+BEGIN_SRC sh |awk '{print $2}' #+END_SRC When I do org-babel-tangle, the resulting file only has #!/bin/sh. With 8.3.6, I get the following file correctly: #!/bin/sh df \ df \ |sed '1d' \ |awk '{print $5 " " $6}'|sort -n |tail -1 \ |awk '{print $2}' I set org-use-property-inheritance to ("noweb-ref") with (add-to-list 'org-use-property-inheritance "noweb-ref"). Please let me know= if I'm doing something wrong. Best, Joon --_000_CY4PR15MB16223E5694BEACDFE7D90875EB6E0CY4PR15MB1622namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,


When I use org 8.3.6, it works correctly, but when I use org 9.0.3,= it seems org-babel-tangle ignores noweb-ref property. For example, us= ing the example from ht= tp://orgmode.org/manual/noweb_002dref.html:


#+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/s=
h=0A=
        <<fullest-disk>>=0A=
      #+END_SRC=0A=
      * the mount point of the fullest disk=0A=
        :PROPERTIES:=0A=
        :noweb-ref: fullest-disk=0A=
        :END:=0A=
     =0A=
      ** query all mounted disks=0A=
      #+BEGIN_SRC sh=0A=
        df \=0A=
      #+END_SRC=0A=
     =0A=
      ** strip the header row=0A=
      #+BEGIN_SRC sh=0A=
        |sed '1d' \=0A=
      #+END_SRC=0A=
     =0A=
      ** sort by the percent full=0A=
      #+BEGIN_SRC sh=0A=
        |awk '{print $5 " " $6}'|sort -n |tail -1 \=0A=
      #+END_SRC=0A=
     =0A=
      ** extract the mount point=0A=
      #+BEGIN_SRC sh=0A=
        |awk '{print $2}'=0A=
      #+END_SRC

When I do org-babel-tangle, the resulting file only has #!/bi= n/sh.


With 8.3.6, I get the following file correctly:


#!/bin/sh
  df \
  df \
  |sed '1d' \
  |awk '{print $5 " " $6}'|sort -n |tail -1 \
  |awk '{print $2}'


I set org-use-property-inheritance to ("noweb= -ref") with 

(add-to-list 'org-use-property-inheritance "noweb-ref"). Please let me know if I'm doing something wro= ng. 


Best,

Joon






--_000_CY4PR15MB16223E5694BEACDFE7D90875EB6E0CY4PR15MB1622namp_--