all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-babel-tangle ignores noweb-ref property
@ 2017-01-03 20:29 Joon Ro
  2017-01-03 22:03 ` Charles C. Berry
  0 siblings, 1 reply; 2+ messages in thread
From: Joon Ro @ 2017-01-03 20:29 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1287 bytes --]

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






[-- Attachment #2: Type: text/html, Size: 2681 bytes --]

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

* Re: org-babel-tangle ignores noweb-ref property
  2017-01-03 20:29 org-babel-tangle ignores noweb-ref property Joon Ro
@ 2017-01-03 22:03 ` Charles C. Berry
  0 siblings, 0 replies; 2+ messages in thread
From: Charles C. Berry @ 2017-01-03 22:03 UTC (permalink / raw)
  To: Joon Ro; +Cc: emacs-orgmode@gnu.org

On Tue, 3 Jan 2017, Joon Ro wrote:

> 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

         :header-args: :noweb-ref fullest-disk

Is the new style.

See ORG-NEWS *** Old Babel header properties are no longer supported

I guess (info "(org) noweb-ref") needs an update.

Chuck

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

end of thread, other threads:[~2017-01-03 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-03 20:29 org-babel-tangle ignores noweb-ref property Joon Ro
2017-01-03 22:03 ` Charles C. Berry

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.