From: Joon Ro <joon.ro@outlook.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: org-babel-tangle ignores noweb-ref property
Date: Tue, 3 Jan 2017 20:29:32 +0000 [thread overview]
Message-ID: <CY4PR15MB16223E5694BEACDFE7D90875EB6E0@CY4PR15MB1622.namprd15.prod.outlook.com> (raw)
[-- 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 --]
next reply other threads:[~2017-01-03 20:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-03 20:29 Joon Ro [this message]
2017-01-03 22:03 ` org-babel-tangle ignores noweb-ref property Charles C. Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CY4PR15MB16223E5694BEACDFE7D90875EB6E0@CY4PR15MB1622.namprd15.prod.outlook.com \
--to=joon.ro@outlook.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.