GNU bug report logs - #74964
31.0.50 master; .dir-locals.el vars does not work with changing major mode

Previous Next

Package: emacs;

Reported by: Yikai Zhao <yikai <at> z1k.dev>

Date: Thu, 19 Dec 2024 07:55:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 74964 <at> debbugs.gnu.org (full text, mbox):

From: Yikai Zhao <yikai <at> z1k.dev>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 74964 <at> debbugs.gnu.org, rpluim <at> gmail.com,
 74964-done <at> debbugs.gnu.org
Subject: Re: bug#74964: 31.0.50 master; .dir-locals.el vars does not work with
 changing major mode
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
<monnier <at> iro.umontreal.ca> 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




This bug report was last modified 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.