Subject: bug#67795: [PATCH] Handle local-variable major-mode remaps specifying non-existent mode

From: Eli Zaretskii <[email-masked]>
Date: Tue, 12 Dec 2023 19:17:25 +0200

> From: Stefan Monnier <[email-masked]>
> Cc: Brian Leung <[email-masked]>,  [email-masked]
> Date: Tue, 12 Dec 2023 11:02:43 -0500
> 
> I can't wrap my head around what `hack-local-variables--find-variables`
> is supposed to do, but for the other part of the change, maybe the patch
> below is a good start?

Maybe.  Someone should try running with this for a while and come back
with feedback.  In particular, what happens if MODEFUN is from some
unbundled mode, and we expect Emacs to fall back on something
sensible, instead of signaling an error.

Thanks.