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

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

Re: Trying to set indent-tabs-mode to nil in f90-mode with .dir-locals.e


From: Stefan Kangas
Subject: Re: Trying to set indent-tabs-mode to nil in f90-mode with .dir-locals.el
Date: Fri, 29 Nov 2019 13:01:51 +0100

Alberto Luaces <aluaces@udc.es> writes:

> f90-mode sets by default indent-tabs-mode to nil, which is good for me.
[...]
> The problem is that I cannot revert that setting for f90-mode even being
> specific in .dir-locals.el:
>
> --8<---------------cut here---------------start------------->8---
> ((nil (indent-tabs-mode . t))

BTW, I think you are missing a parenthesis here:

((nil . ((indent-tabs-mode . t)))

It doesn't seem to make a difference in this case, though.

>  (f90-mode . ((indent-tabs-mode . nil)))) ; It is evaluated to t nevertheless
> --8<---------------cut here---------------end--------------->8---
>
> This is somewhat strange, according to the manual.  Are there any
> pointers for further debugging this issue?

The manual (info "(emacs)Directory Variables") indeed says:

   If the ‘.dir-locals.el’ file contains multiple different values for a
variable using different mode names or directories, the values will be
applied in an order such that the values for more specific modes take
priority over more generic modes.

I tried, but I can't reproduce this issue here (using the upcoming
Emacs 27 development branch).  I would try using "emacs -Q" to rule
out that there is something in your local configuration which causes
this.

Best regards,
Stefan Kangas



reply via email to

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