From: Stefan Kangas <stefan@marxist.se>
To: Alberto Luaces <aluaces@udc.es>
Cc: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <CADwFkmkMZVypcPn1bvXSiiNOUM-CH43wr-n+pGUy6U1KiJ+EiA@mail.gmail.com> (raw)
In-Reply-To: <8736e7ud8n.fsf@eps142.cdf.udc.es>
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
next prev parent reply other threads:[~2019-11-29 12:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-28 17:23 Trying to set indent-tabs-mode to nil in f90-mode with .dir-locals.el Alberto Luaces
2019-11-29 12:01 ` Stefan Kangas [this message]
2019-11-29 14:04 ` Robert Pluim
2019-11-29 15:18 ` Alberto Luaces
2019-11-29 15:08 ` Alberto Luaces
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADwFkmkMZVypcPn1bvXSiiNOUM-CH43wr-n+pGUy6U1KiJ+EiA@mail.gmail.com \
--to=stefan@marxist.se \
--cc=aluaces@udc.es \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).