the problem is in your definition of 'end' and 'bottom'
??
end := end of run
bottom := bottom of last page, in this case
the real final thing is \end and \everygoodbye happens just before that (the only calls after it are postponed error messages, which have no consequence for any pdf and the primitive \end which is really needed)
yes, as I seen in \def\stoptext
of course there can be pending conditional branches that needs to be finished; just try \appendtoks\tracingall\to\everygoodbye
true
You can also do something
\startluacode
table.insert(input.stop_actions, function()
texio.write_nl("I still have no clue why you need it.")
end)
\stopluacode
ok thank you -- I like lua code --
any other hook in itself will introduce a new situation of 'something done before the real \end'
exactly what I mean:
"any other hook in itself will introduce a new situation of 'something done before the real \end'"
that potentially can modify current page .