emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>, Eric S Fraga <ucecesf@ucl.ac.uk>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [babe] noweb used to work but no longer does... what has changed?
Date: Mon, 1 Feb 2010 13:57:09 -1000	[thread overview]
Message-ID: <91C9F693-65DA-4D97-A436-C372C9C24661@tsdye.com> (raw)
In-Reply-To: <87zl3s1rox.wl%ucecesf@ucl.ac.uk>


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	other threads:[~2010-02-01 23:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-01 23:06 [babe] noweb used to work but no longer does... what has changed? Eric S Fraga
2010-02-01 23:57 ` Thomas S. Dye [this message]
2010-02-02  0:22   ` Eric S Fraga

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91C9F693-65DA-4D97-A436-C372C9C24661@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=ucecesf@ucl.ac.uk \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).