bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74964: 31.0.50 master; .dir-locals.el vars does not work with changi


From: Yikai Zhao
Subject: bug#74964: 31.0.50 master; .dir-locals.el vars does not work with changing major mode
Date: Thu, 19 Dec 2024 15:53:58 +0800

How to reproduce:

With following content in /tmp/test/.dir-locals.el:

((nil . ((my/test . "test")))
 (c-mode . ((eval . (when (eq major-mode 'c-mode)
                      (c++-mode))))))
;; I use this code because I want my projects' .h files always opened
in c++ mode

Then open a new file test.c in the folder.

Expected behavior: my/test variable is set.
Actual behavior: my/test variable is not set.

Emacs 29 and 30 does give me the expected result.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]