Skip to content
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

Inconsistent local/global assignment of hooks #463

Closed
cgnieder opened this issue Jan 2, 2021 · 2 comments · Fixed by #466
Closed

Inconsistent local/global assignment of hooks #463

cgnieder opened this issue Jan 2, 2021 · 2 comments · Fixed by #466

Comments

@cgnieder
Copy link

cgnieder commented Jan 2, 2021

Brief outline of the bug

Debugging expl3 code shows errors in the hook code (using LaTeX 2020-10-01 PL3).
This is not a problem in itself (I guess) but is at least annoying when debugging own code.

Minimal example showing the bug

\RequirePackage{latexbug}
\documentclass{article}
\ExplSyntaxOn
\sys_load_debug:
\debug_on:n {all}
\ExplSyntaxOff
\begin{document}
\end{document}

This example shows several errors of the form

./test.tex:7: LaTeX3 Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.7 \begin{document}
                    

This is a coding error.

Global assignment to a constant variable '\__hook begindocument'.

Log file (required) and possibly PDF file

test.log

@FrankMittelbach
Copy link
Member

bugger :-(

PhelypeOleinik added a commit that referenced this issue Jan 3, 2021
@FrankMittelbach FrankMittelbach moved this from Pool (unscheduled issues) to Done in upcoming LaTeX2e releases Jan 6, 2021
@FrankMittelbach FrankMittelbach added this to the hotfix milestone Jan 7, 2021
@PhelypeOleinik PhelypeOleinik mentioned this issue Jan 7, 2021
3 tasks
@PhelypeOleinik PhelypeOleinik linked a pull request Jan 7, 2021 that will close this issue
3 tasks
@PhelypeOleinik PhelypeOleinik reopened this Jan 7, 2021
upcoming LaTeX2e releases automation moved this from Done to In progress Jan 7, 2021
@FrankMittelbach
Copy link
Member

part of PL4

upcoming LaTeX2e releases automation moved this from In progress to Done Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants