On Sat, 18 Jan 2025 at 15:03, Udicoudco <udifoglle@gmail.com> wrote:
The documentation states that \shapemode should reset to 0 at the end
of a paragraph if it is positive, but the following shows otherwise

\catcode`\{=1\catcode`\}=2
\directlua{tex.enableprimitives('',tex.extraprimitives ())}
\shapemode=1
\showthe\shapemode
\quitvmode\par
\showthe\shapemode
\end

I think the fix is a one liner.  I attached a patch.


just pushed to 
https://gitlab.lisn.upsaclay.fr/texlive/luatex.git
commit 07c0b354d913a32dd3faf79f05f0f103c55416d0 (HEAD -> master, origin/master, origin/HEAD)
Author: Luigi Scarso <luigi.scarso@gmail.com>              
Date:   Sun Jan 19 13:08:42 2025 +0100

    Fixed \shapemode does not reset at end of paragraphs (thanks to udifoglle@gmail.com)

--
luigi