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

Gh648 [lthooks] Standardise generic hook names #656

Merged
merged 30 commits into from
Aug 31, 2021
Merged

Conversation

PhelypeOleinik
Copy link
Member

This PR closes #648. The generic hook names are reordered so that the variable part is in the middle position (package/foo/before instead of package/before/foo) to match env and cmd hooks. A deprecation fallback is provided so that the old names still work normally (with a warning) so that people have time to adjust.

Internal housekeeping

Status of pull request

  • Ready to merge

Checklist of required changes before merge will be approved

  • Test file(s) added
  • Version and date string updated in changed source files
  • Relevant \changes entries in source included
  • Relevant changes.txt updated
  • ltnewsX.tex (and/or latexchanges.tex) updated

\@@_if_structure_exist:nTF instead of \@@_if_usable:nTF, because we want to add code to it, and not use it.  This also makes checking for deprecation unnecessary (already done in \@@_try_declaring_generic_next_hook:nn)
Copy link
Member

@FrankMittelbach FrankMittelbach left a comment

Choose a reason for hiding this comment

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

a few minor things noticed

base/ltcmdhooks.dtx Outdated Show resolved Hide resolved
base/ltfilehook.dtx Outdated Show resolved Hide resolved
base/testfiles-lthooks/lthooks-018.lvt Show resolved Hide resolved
@PhelypeOleinik PhelypeOleinik merged commit 9687173 into develop Aug 31, 2021
@PhelypeOleinik PhelypeOleinik deleted the gh648 branch August 31, 2021 01:11
wtsnjp added a commit to wtsnjp/plautopatch that referenced this pull request Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants