Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]
Nicolas Goaziouwrites: > Rainer Hansen writes: > >> However, I have still problems. I have adapted the example, >> http://orgmode.org/manual/noweb_002dref.html#noweb_002dref, > > I fixed it. > Great. >> >> org-use-property-inheritance is '("noweb-ref") > > This is useless. "noweb-ref" is not a property, and header-args are > always inherited IIRC. > Thanks for the clarification. >> Here is the changed code from the Org mode manual: >> >> #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh >> <> >> #+END_SRC >> >> * the mount point of the fullest disk >> :PROPERTIES: >> :header-args: :noweb-ref: fullest-disk > > It should be > > :header-args: :noweb-ref fullest-disk > That was it. Now it is working fine. Thanks for your help.
Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]
Rainer Hansenwrites: > However, I have still problems. I have adapted the example, > http://orgmode.org/manual/noweb_002dref.html#noweb_002dref, I fixed it. > in the > Orgmode handbook to the changed Babel header properties. However, the > generated file contained only "#!/bin/sh". I have activated property > inheritance for "noweb-ref" and moving the cursor on the #+BEGIN_SRC sh > lines shows that they have ":noweb-ref: fullest-disk" as header > argument. > > org-use-property-inheritance is '("noweb-ref") This is useless. "noweb-ref" is not a property, and header-args are always inherited IIRC. > Here is the changed code from the Org mode manual: > > #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh > <> > #+END_SRC > > * the mount point of the fullest disk > :PROPERTIES: > :header-args: :noweb-ref: fullest-disk It should be :header-args: :noweb-ref fullest-disk Regards,
Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]
Hi Nicolas, Nicolas Goaziouwrites: > Hello, > > Rainer Hansen writes: > >> I have tried the following example of using noweb-ref: >> >> #+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 >> >> >> >> It was mentioned more than 5 years ago as creating problems: >> https://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00825.html >> >> Now I got the same problem as mentioned in the post of that time - the >> created file contains only >> >> #!/bin/sh df \ >> >> Missing is the second block. >> >> Any ideas why? > > See "Incompatible changes > Old Babel header properties are no longer > supported" in ORG-NEWS. > > Regards, thanks for the quick answer. However, I have still problems. I have adapted the example, http://orgmode.org/manual/noweb_002dref.html#noweb_002dref, in the Orgmode handbook to the changed Babel header properties. However, the generated file contained only "#!/bin/sh". I have activated property inheritance for "noweb-ref" and moving the cursor on the #+BEGIN_SRC sh lines shows that they have ":noweb-ref: fullest-disk" as header argument. org-use-property-inheritance is '("noweb-ref") Here is the changed code from the Org mode manual: --8<---cut here---start->8--- #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh <> #+END_SRC * the mount point of the fullest disk :PROPERTIES: :header-args: :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 --8<---cut here---end--->8--- Any ideas why it is still not working. Regards, Rainer
Re: [O] Problem with noweb-ref property [9.0.5 (9.0.5-elpaplus @ /home/rainer/.emacs.d/elpa/org-plus-contrib-20170210/)]
Hello, Rainer Hansenwrites: > I have tried the following example of using noweb-ref: > > #+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 > > > > It was mentioned more than 5 years ago as creating problems: > https://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00825.html > > Now I got the same problem as mentioned in the post of that time - the > created file contains only > > #!/bin/sh df \ > > Missing is the second block. > > Any ideas why? See "Incompatible changes > Old Babel header properties are no longer supported" in ORG-NEWS. Regards, -- Nicolas Goaziou