From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.help 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 Message-ID: References: <8736e7ud8n.fsf@eps142.cdf.udc.es> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="80540"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Alberto Luaces Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 29 14:48:30 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iagdI-000Kmf-NX for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Nov 2019 14:48:28 +0100 Original-Received: from localhost ([::1]:59264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iagdH-0000qo-6t for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Nov 2019 08:48:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52854) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaeyN-0003KE-Ky for help-gnu-emacs@gnu.org; Fri, 29 Nov 2019 07:02:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaeyL-0000Pg-Cy for help-gnu-emacs@gnu.org; Fri, 29 Nov 2019 07:02:07 -0500 Original-Received: from mail-pj1-f48.google.com ([209.85.216.48]:38296) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaeyL-0000NU-2M for help-gnu-emacs@gnu.org; Fri, 29 Nov 2019 07:02:05 -0500 Original-Received: by mail-pj1-f48.google.com with SMTP id l4so1844062pjt.5 for ; Fri, 29 Nov 2019 04:02:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0/3H06m1V/uv2F1l+3D0fmbWmVIcECBLnEJRHQcuTJI=; b=tENhP9Pg+z53XouvGwAl/HH4t/szKhiHXyo7MTL+0HL68srH7bk8QHoXG+clvYYLDd 7aRDccfshSqZwOEbK+zjIZuRpuHXrTMnCG9O/h2PSz5D50t8v9m+YH0UyuQrraChtrFA kRdHFtiK3jOEdxyhQq0jvMfNUFKqFq11+LRHaBzwIU+cOrt/gLB+ERXwdgYIVsiR2Jgf MKQ73R/jzuyv9J7It2vPEa+wA6u4GMPKEADEXv3sJhpcdrDcWpXRX0S2X+ilwK0sFOne zVn6xEw4a+MRQRfWYvXECzNkpmO7MdNHj/UiC89+z7T58hO03NZRR+iblrckbSn00fhV Pn2w== X-Gm-Message-State: APjAAAVIuY0N0vxljqLLeXTYaU2wJVK069FZx5WC3DdJ/kDnuBqXU7kd xIiJFVymVqzZXcL7IHBh7AWBUU3BPbqWN+mYo0I= X-Google-Smtp-Source: APXvYqyZr2tz1GLsWwp9L++5pHHK5UKDHXqL79H2hv3fez8Clf3gcbrPWK1FARH/AT2F+yXzthSbUGx/EDdX0pAKPMM= X-Received: by 2002:a17:902:bc81:: with SMTP id bb1mr14649949plb.259.1575028922417; Fri, 29 Nov 2019 04:02:02 -0800 (PST) In-Reply-To: <8736e7ud8n.fsf@eps142.cdf.udc.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.48 X-Mailman-Approved-At: Fri, 29 Nov 2019 08:29:11 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121940 Archived-At: Alberto Luaces 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 neverthe= less > --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 =E2=80=98.dir-locals.el=E2=80=99 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