Skip to content

Emacs 31 upgrade - #19

Merged
DROOdotFOO merged 2 commits into
mainfrom
emacs-31-upgrade
Aug 9, 2026
Merged

Emacs 31 upgrade#19
DROOdotFOO merged 2 commits into
mainfrom
emacs-31-upgrade

Conversation

@DROOdotFOO

Copy link
Copy Markdown
Owner

No description provided.

The guard matched the bare string "rm" anywhere in the command, so any
word ending in rm -- terraform, confirm, perform, form -- tripped it.
The -r/-f scan also ran across the entire command rather than one
invocation, blocking "rm a.txt && grep -r -f pat", and the xargs rule
blocked anything containing rm after xargs, such as "xargs grep -l form".

Replace the regex stack with a per-segment tokenizer: split on shell
separators, skip wrapper words (sudo, env, xargs, bash -c) and VAR=
prefixes, resolve the command word, then attribute flags only to that
rm. Stops at -- so "rm -- -rf" is treated as a filename.

Net effect is stricter, not looser: it still catches every previous true
positive plus bash -c "rm -rf /", which the old pattern missed entirely.
Covered by a 36-case regression table.
31.0.91 is a pretest off the emacs-31 branch. It carries the upstream
fix for HTTP 402 (bug#81101), which previously raised an error from
inside the url-http process filter and left eww stuck on "Loading..."
for sites using 402 as an anti-bot challenge, so no local patch is
needed. The tap's emacs-plus@32 is master, not a newer stable.

Point BREW_FORMULA, the Brewfile, and the docs at @31, and derive the
dashboard title from emacs-major-version instead of a literal that had
already drifted a version behind.

Document the two traps this upgrade hit: emacs-plus's bin/emacs is a
wrapper that prefers /Applications/Emacs.app, so bumping the formula
alone keeps launching the old version under a new keg name, and a
major-version bump invalidates every .elc, which needs
package-recompile-all rather than byte-recompile-directory.
@DROOdotFOO
DROOdotFOO merged commit 8dc91b5 into main Aug 9, 2026
5 checks passed
@DROOdotFOO
DROOdotFOO deleted the emacs-31-upgrade branch August 9, 2026 02:21
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.

1 participant