Subject: bug#74964: 31.0.50 master; .dir-locals.el vars does not work with changing major mode

From: Yikai Zhao <[email-masked]>
Date: Fri, 17 Jan 2025 13:55:15 +0800

Thanks! It fixes the issue for me.

On Fri, Jan 17, 2025 at 12:34 PM Stefan Monnier
<[email-masked]> wrote:
>
> > ((nil . ((my/test . "test")
> >          (eval . (setq-local my/test2 "test2"))))
> >  (c-mode . ((eval . (when (eq major-mode 'c-mode)
> >                       (c++-mode))))))
>
> [ Sigh!  This is starting to make me remember the ugly hacks I added to
>   try and avoid inf-loops in my type checker.  ]
>
> How 'bout the patch below?
>
>
>         Stefan