all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alberto Luaces <aluaces@udc.es>
To: help-gnu-emacs@gnu.org
Subject: Trying to set indent-tabs-mode to nil in f90-mode with .dir-locals.el
Date: Thu, 28 Nov 2019 18:23:04 +0100	[thread overview]
Message-ID: <8736e7ud8n.fsf@eps142.cdf.udc.es> (raw)

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

Hi,

f90-mode sets by default indent-tabs-mode to nil, which is good for me.

If I want to set automatically (indent-tabs-mode t) for the rest of the
modes, I set .dir-locals.el to

--8<---------------cut here---------------start------------->8---
((nil (indent-tabs-mode . t)))
--8<---------------cut here---------------end--------------->8---

However, that sets the variable to nil even in f90-mode, as expected.
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))
 (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?

Thanks!

-- 
Alberto

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 272 bytes --]

             reply	other threads:[~2019-11-28 17:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-28 17:23 Alberto Luaces [this message]
2019-11-29 12:01 ` Trying to set indent-tabs-mode to nil in f90-mode with .dir-locals.el Stefan Kangas
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8736e7ud8n.fsf@eps142.cdf.udc.es \
    --to=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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.