Skip to content

Correctly error on top-level use of \PushDefaultHookLabel{.}#1925

Open
josephwright wants to merge 1 commit intodevelopfrom
gh1162
Open

Correctly error on top-level use of \PushDefaultHookLabel{.}#1925
josephwright wants to merge 1 commit intodevelopfrom
gh1162

Conversation

@josephwright
Copy link
Member

READ ME FIRST: Please understand that in most cases we will not be able to merge a pull request because there are a lot of internal activities needed when updating the LaTeX2e sources. If you have a code suggestion please discuss it with the team first.

Internal housekeeping

Status of pull request

  • Feedback wanted
  • Under development
  • Ready to merge

Checklist of required changes before merge will be approved

  • Test file(s) added - covered by existing test
  • Version and date string updated in changed source files
  • Relevant \changes entries in source included
  • Relevant changes.txt updated
  • Rollback provided (if necessary)?
  • ltnewsX.tex (and/or latexchanges.tex) updated

@josephwright josephwright linked an issue Dec 3, 2025 that may be closed by this pull request
Comment on lines +31 to +41
! Use of \??? doesn't match its definition.
<argument> \???
! LaTeX hooks Error: Empty hook name on line ....
l. ...\PushDefaultHookLabel{}
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
! LaTeX hooks Error: You cannot change the default label to 'top-level'. Illegal
(hooks) \PushDefaultHookLabel{top-level}
(hooks) on line ....
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but I don't see that this gives any improvement as far as the error message is concerned and not sure what it does from a code perspective. Maybe it would be better to just not support the dot syntax here? @davidcarlisle any thoughts?

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

This PR has been automatically marked as stale because it has not had recent activity.

@github-actions github-actions bot added the stale label Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

\PushDefaultHookLabel{.}

2 participants