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

From: Yikai Zhao <[email-masked]>
Date: Thu, 16 Jan 2025 16:29:40 +0800

Hi Stefan,

Sorry to bring this back again.

The original issue is indeed fixed, however there's another related
issue remaining. With the following .dir-locals.el code:

((nil . ((my/test . "test")
         (eval . (setq-local my/test2 "test2"))))
 (c-mode . ((eval . (when (eq major-mode 'c-mode)
                      (c++-mode))))))

The `my/test` variable will be set after your fix. But the `my/test2`
variable is still not set.

On Sun, Jan 5, 2025 at 11:05 PM Stefan Monnier <[email-masked]> wrote:
>
> >> This patch does fix the issue for me. Thanks.
>
> Thank you for confirming!
>
> > Thanks for testing.  Stefan, please install, and thanks.
>
> Closing,
>
>
>         Stefan
>