Skip to content

Conversation

@monnier
Copy link
Collaborator

@monnier monnier commented Nov 19, 2025

The tests don't like the "missing lexical-binding" warnings we get from Emacs-31. It's actually difficult to fix those warnings because the lexical-binding cookie has to be on the first line or on the second line but only if that second line starts with ";", and I don't know of a way to satisfy those constraints are still have a runnable shell script.

There are various possible workarounds, such as cutting the first few lines before we pass the content of $0 to Emacs, but it seemed simpler to just stamp out the function that emits the warning.

The tests don't like the "missing lexical-binding" warnings we get
from Emacs-31.  It's actually difficult to fix those warnings
because the `lexical-binding` cookie has to be on the first line
or on the second line but only if that second line starts with ";",
and I don't know of a way to satisfy those constraints are still have
a runnable shell script.

There are various possible workarounds, such as cutting the first few
lines before we pass the content of `$0` to Emacs, but it seemed
simpler to just stamp out the function that emits the warning.
@xuhdev xuhdev merged commit 05b4224 into master Nov 27, 2025
11 checks passed
@xuhdev xuhdev deleted the fix-test-with-snapshot branch November 27, 2025 02:16
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