[dev-context] \autoinsertnextspace (spac-hor.mkiv)

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Jan 17 15:42:54 CET 2013


Hi Hans,

the \autoinsertnextspace command fails when it gets a \par token.

\starttext
\dontleavehmode\autoinsertnextspace\par
\stoptext

The error disappears when you pass the argument to lua as a long string:

\def\spac_spaces_auto_insert_next
- {\ctxcommand{autonextspace("\meaning\nexttoken")}} % todo, just consult nexttoken at the lua end
+ {\ctxcommand{autonextspace(\!!bs\meaning\nexttoken\!!es)}} % todo, just consult nexttoken at the lua end

Wolfgang


More information about the dev-context mailing list