On Mon, 5 Mar 2012, Kip Warner wrote:

On Mon, 2012-03-05 at 22:50 -0500, Aditya Mahajan wrote:
The error is not due to the macro \BazaarRevision. The log file shows that
the group (for {\loggingall \BazaarRevison}) is closed properly; the error
is displayed after that. So, something else in your setup is causing the
error.

It doesn't bail unless I replace the previous definition with yours.
Here is an example of its usage from my source:

\setupinteraction
 [state=start,
  color=colour_link,
  contrastcolor=colour_link,
  focus=standard,
  title=Some Book (Bzr r\BazaarRevision),
  author=Some Book (Bzr r\BazaarRevision)]

Why don't you use the first version (\initializebazaarversion and \usebazaarversion)?

\def\initializeBazaar
       {\ctxlua{context("\\global\\edef\\BazaarRevision{\%s}",
                os.resultof"bzr revno | tr -d '\\n'")}}

\initializeBazaar

\setupinteraction
  [state=start,
   color=colour_link,
   contrastcolor=colour_link,
   focus=standard,
   title=Some Book (Bzr r\BazaarRevision),
   author=Some Book (Bzr r\BazaarRevision)]

\starttext

Hello \BazaarRevision Bye

\stoptext


The rest of the book just has some \BazaarRevision scattered here and
there, but I can't see anything unusual about their usage or context.

It helps if you try to create a minimal example.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to