emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [babe] noweb used to work but no longer does... what has c


From: Thomas S. Dye
Subject: Re: [Orgmode] [babe] noweb used to work but no longer does... what has changed?
Date: Mon, 1 Feb 2010 13:57:09 -1000


On Feb 1, 2010, at 1:06 PM, Eric S Fraga wrote:

Hi,

after two months away from a particular document, I find that all my
babel codes in that document no longer work as they used to.
Specifically, references to other source code blocks are now no longer
expanded:

--8<---------------cut here---------------start------------->8---
* maxima test
*** COMMENT units
#+srcname: units
#+begin_src maxima
programmode: false$
h: 3600*s$
day: 24*h$
#+end_src

*** Real evaluations
#+srcname: unitstest
#+begin_src maxima :results output :exports results :noweb
<<units>>
solution: solve([m = 2*day], [m]),numer$
#+end_src

#+results: unitstest
: stdin:2:Incorrect syntax: < is not a prefix operator
: <<
: ^
--8<---------------cut here---------------end--------------->8---

The error at the end is because the code segment immediately above,
unitstest, has been copied literally to the maxima input file without
expansion of "<<units>>".  This used to work fine so something has
changed?  If the change is something that will have affected my maxima
babel code, I can post that (but it's a total hack...).

Any and all suggestions or pointers more than welcome!

Thanks,
eric

Hi Eric,

Yes, the :noweb syntax was changed. You'll need to say :noweb yes now. There are ways to set this by file and globally as well.

The Org-babel documentation should be up-to-date on the new syntax.

All the best,
Tom





reply via email to

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