2012/3/7 Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>
Hello,

I'd need to to hook \stoptext by Lua - I'd need to write something right before the end of the text.

At least
\let\Oldstoptext\stoptext
\def\stoptext{%
\startluacode
context("END")
\stopluacode
\Oldstoptext}


\starttext
 \input knuth
\stoptext % To be hooked by Lua


But there are several \every* tokens list for this.
--
luigi