emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-babel-tangle ignores noweb-ref property


From: Joon Ro
Subject: [O] org-babel-tangle ignores noweb-ref property
Date: Tue, 3 Jan 2017 20:29:32 +0000

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, using the example from http://orgmode.org/manual/noweb_002dref.html:


#+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh
        <<fullest-disk>>
      #+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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]