[dev-context] strc-con.mkvi
Hans Hagen
pragma at wxs.nl
Thu Feb 9 19:28:02 CET 2012
On 9-2-2012 16:56, Wolfgang Schuster wrote:
> Hi,
>
> shouldn’t these values be global?
>
> \def\strc_constructions_register_yes[#1][#2]% #1=interfaced-settings, #2=optional user data
> {\begingroup % similar to structure so we might generalize this
> ...
> \ifnoconstructioncaption % then why analyze anyway?
> \endgroup
> - \let\currentconstructionlistnumber \relax
> - \let\currentconstructionsynchronize\relax
> - \let\currentconstructionattribute \relax
> + \glet\currentconstructionlistnumber \relax
> + \glet\currentconstructionsynchronize\relax
> + \glet\currentconstructionattribute \relax
> \else
> ...
> % \writestatus{constructions}{registering \currentconstruction: \number\scratchcounter}%
> \normalexpanded{%
> \endgroup
> - \edef\noexpand\currentconstructionlistentry {\the\scratchcounter}%
> - \edef\noexpand\currentconstructionattribute {\ctxcommand {setinternalreference("\referenceprefix","\currentconstructionreference",\nextinternalreference,"\interactionparameter\c!focus")}}%
> - \edef\noexpand\currentconstructionsynchronize{\ctxlatecommand{enhancelist(\the\scratchcounter)}}%
> + \xdef\noexpand\currentconstructionlistentry {\the\scratchcounter}%
> + \xdef\noexpand\currentconstructionattribute {\ctxcommand {setinternalreference("\referenceprefix","\currentconstructionreference",\nextinternalreference,"\interactionparameter\c!focus")}}%
> + \xdef\noexpand\currentconstructionsynchronize{\ctxlatecommand{enhancelist(\the\scratchcounter)}}%
> }%
> \fi}
actually i wanted them to be local ... (but they need to be
inititalized, so (this morning) i added this before the macro:
\let\currentconstructionlistnumber \!!zerocount
\let\currentconstructionsynchronize\relax
\let\currentconstructionattribute \attributeunsetvalue
in order to prevent messages (new beta later as there has been another fix)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
More information about the dev-context
mailing list