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

Skip mapping over undeclared prop in \ShowHook etc. #1515

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

muzimuzhi
Copy link
Contributor

I'm not so familiar with hooks implementation, so maybe there're more uncaught similar cases.

Rollback needed? Only \ShowHook, \LogHook and friends are affected.

ltnews40.tex entry not added. Maybe after #1512 gets merged?

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
  • 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

@muzimuzhi muzimuzhi marked this pull request as ready for review October 29, 2024 05:30
Copy link
Member

@josephwright josephwright left a comment

Choose a reason for hiding this comment

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

Code and changes look fine, and rollback is not needed here, but I think a short news entry would normally be included - just something like Showing hooks gave a low-level error if the hook was undeclared; this has now been corrected.

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.

  • ltnews as suggested by Joseph

Comment on lines +6189 to +6190
{ ! \prop_if_exist_p:c { g_@@_#1_code_prop } }
{ \prop_if_empty_p:c { g_@@_#1_code_prop } }
Copy link
Member

Choose a reason for hiding this comment

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

actually, it might be worth putting in a short comment why this is necessary, ie that a non-existent prop would return "empty" = true but that fail when mapping over it

Copy link
Member

Choose a reason for hiding this comment

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

rubbish, would be empty = false ....

@josephwright josephwright merged commit 325db29 into latex3:develop Oct 29, 2024
84 checks passed
@josephwright josephwright added fixed in dev Fixed in development branch, not in stable release and removed fixed in dev Fixed in development branch, not in stable release labels Oct 29, 2024
josephwright added a commit that referenced this pull request Oct 29, 2024
@muzimuzhi muzimuzhi deleted the fix/gh1513-ShowHook branch October 30, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants