%D \module
%D   [       file=attr-ini,
%D        version=2007.06.06, % probably a bit older
%D          title=\CONTEXT\ Node Macros,
%D       subtitle=Finalizing,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Node Support / Finalizing}

\unprotect

\registerctxluafile{node-shp}{autosuffix}
\registerctxluafile{node-fin}{autosuffix}

\permanent\protected\def\finalizeobjectbox #1{\clf_finalizeobjectbox #1\relax}
\permanent\protected\def\finalizeshipoutbox#1{\clf_finalizeshipoutbox#1\relax}

% This is just a compatibility hack:

\newinteger\c_syst_attr_trigger

\permanent\protected\def\attributedcopy{\afterassignment\syst_attr_copy\c_syst_attr_trigger}
\permanent\protected\def\attributedbox {\afterassignment\syst_attr_box \c_syst_attr_trigger}

\def\syst_attr_copy{\recolorbox\c_syst_attr_trigger\copy\c_syst_attr_trigger}
\def\syst_attr_box {\recolorbox\c_syst_attr_trigger\box \c_syst_attr_trigger}

\protect \endinput
