-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra \endgroup in \AddToHook #1430
Comments
Similar: #1099. |
unrelated but you should not patch internal commands of other packages. |
I think this ends up being an unfortunate restriction. It is documented that it is not possible to use generic command hooks with every command. Normally the code that inserts the hook tries to identify whether or not it is possible and provide the developer with a sensible error message, but in edge cases like this you can end up with a low-level error. Trying to avoid this at the cost of making each and every patching noticeably slower is not really viable approach as it doesn't change the situation (other than producing a better error message (it will still not be possible to patch in a generic hook into such commands). So I think the only thing that should be done here is to strengthen the documentation and stating that in a few cases one might get low-level errors instead of a decent error message when using a generic hook is not possible. |
I see this is tricky. Is there a way to do the same thing as The definition is using the L3 catcode table, and assumes that the standard tex/L2 catcode table is in force when its execution starts. |
To be honest I have no idea what this |
This issue has been automatically marked as stale because it has not had recent activity. |
Brief outline of the bug
The command
\AddToHook
causes an error in special circumstances.Minimal example showing the bug
Note the error goes away if the
{m}
spec is replaced with{}
. Also note I have no idea about\cs_set_eq:cN { ~ } \space
, this is minimised from a function in a package I did not write (Piton, function\__piton_piton_standard
).Log file (required) and possibly PDF file
texstudio_VuFlvC.log
No PDF file is produced.
The text was updated successfully, but these errors were encountered: