Received: (at 81232) by debbugs.gnu.org; 14 Jun 2026 16:41:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 14 12:41:10 2026
Received: from localhost ([127.0.0.1]:33233 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wYntV-00022Y-Az
for submit <at> debbugs.gnu.org; Sun, 14 Jun 2026 12:41:10 -0400
Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:57645)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <lumarzeli30@HIDDEN>)
id 1wYntS-00021g-Ar
for 81232 <at> debbugs.gnu.org; Sun, 14 Jun 2026 12:41:07 -0400
Received: by mail-ej1-x62f.google.com with SMTP id
a640c23a62f3a-bf1cdcfd6deso282884466b.3
for <81232 <at> debbugs.gnu.org>; Sun, 14 Jun 2026 09:41:06 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1781455260; cv=none;
d=google.com; s=arc-20240605;
b=iZQABohBqEqqeHt3KAbH1kZ/1fM6yvNiHxVNTAa45vxxhIo4wt5CWkT55Ir7eINsH+
4ocYeNauLa38z+5ieN2prSY2zGl4us51ru/2t1exkLKXoswQ8TwPKCygebNC5OU8BkV4
y9rauTB8NbN7cOAXPogY4akDWcCoxrSSR8c0gobH1QsHayHJcq1OKpWph4lFukHG0lzn
JQb31jjQ5gONOonRPgFw2urgupHqyiujdvC/ihLSKrmAYn5pKHmqRcDhLywTyxFJPxt4
uOLAfz0IziQG3MOvlR8KX4ldzUMijypFbgzKLPzoQeL7xTlDCXrEaUOAGRZ0KE4N3/lg
VvJQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:to:subject:message-id:date:mime-version
:references:in-reply-to:from:dkim-signature;
bh=HYALnvvglcW+vNYpvnRKp/+Gt0f/jlYNyZRQrpOfrRI=;
fh=YvusoSycPDvN//e09Rr7TBER5kG/9Gim5Tsf7c3G5pI=;
b=WGla8brxQyjYxaiKLAVJFa58jgOphagDi/Gvf2o6ak3a2glAsOPv6Ah6pBHKm9r1cj
jTKB3Urq9T8tkwaRqx1znoNSAP+Dfulht+PwUR8IIQzx3zkSFqUogVDBMfaVQTI35EcD
2NHHMpcQfOwT8NSi2TpZz/Puml00utcItPDjYXewzKAWSzZeSL2OprgOLA1buihFaVHz
eFk4OUJdYjsuLyFVDssFDJ7SoavTWpgTx68Z+zhUUXSZq73C2v/O0rBrAFXYErLUKzWV
ARJooJ+L9Y9RUdX+KGNAueirIqfUXR9vo3o/qfwm4xu+p0pXy2lBbfb1/Wa+suI2NfoS
o16A==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1781455260; x=1782060060; darn=debbugs.gnu.org;
h=content-transfer-encoding:to:subject:message-id:date:mime-version
:references:in-reply-to:from:from:to:cc:subject:date:message-id
:reply-to; bh=HYALnvvglcW+vNYpvnRKp/+Gt0f/jlYNyZRQrpOfrRI=;
b=VDuU6Kh+zzQQyRwlu782WFq7suI7knWIODYlxB0Wi5xMCnjWPHGNg56cZlKL2IOtuf
7UDpFUg9E48dEpFXYsDX/0G11WV7gNXOx3RlVX6H8/WsLO/NEO9lS/2/C/5kgWqqzlP8
iwKHLsHmc4mOBs0y4fq7UBlfy5cQQ7gG8+JnbqBbLV7BpEJ827tkmsgxEnBmAIE/RAJp
uxrIqBzHTZMwE/bUvZA+hgRnVpHEK67L2tFoeG6dZ1zOJZjNyJYgmWAVJErdOWoCQf+Y
tL8Xp5JV6y5t+QK3wZSsjWyYumEyyOZ5KD4haX5DfmJnZJZqTtiZY+Y9+Gahez3FUfVu
4SmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1781455260; x=1782060060;
h=content-transfer-encoding:to:subject:message-id:date:mime-version
:references:in-reply-to:from:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=HYALnvvglcW+vNYpvnRKp/+Gt0f/jlYNyZRQrpOfrRI=;
b=gBTCAiisneY+2hxPOoIu5Di+8eJcuTf7UsAZXbwlqnY3vOoUug2uNNkaRo/ZY91/Ee
+639KfE+AsRNX5u8o0pTuNXLt1mBoWGNnTCBLHzr9+EvdkN7D/mNTSBHUDBdjWKc8Eb3
ZYe2YhrXqeoaejG/kMRSZ5vX5Ef3hAuc6dWPGx4XzQwAy7IgxZ+486J0TUDDOiNAUYgX
WvrmijAHqW4/LVXxEnfeGXP9Hq3rUN6CU4vx1Mw7ACRsXVrARTV/L9uxBgvUa8kWVTcQ
lYysF/QK3olsZ6gBVG8a6ywwQogCwTj+SgzqaOA1EOgTW2Ok3IodfLXLxQ4xeF6v2KMD
embA==
X-Forwarded-Encrypted: i=1;
AFNElJ/CYfFsC4/pvyXATV4dINTpXqxiO5c8F7BGZiH8h9BXROWVT8lGdNO5dJe7LcTR6lOD+oKQrw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yz5dv/8nZvkAngZjP14U0B705mngj4tHefTVbNshrJzKgFz9HQ1
bDXefNSqEZxuLmVPwCWB7ipXtc0GdHntVnH++Iqkimx3RQYnVSxIH50lZXOof5SDwgZU/b5jIDf
m1lzmmDPSNPaRJ8hIVcccjTDw2kyyY1Q=
X-Gm-Gg: Acq92OEYC8BFjbXV6PaARGXYdVeVsluikfGk71t5t2pt062iA1P8FGDyB+wIae6xFI4
yFW31lXVNRo4Y6odP8xMvHYBFW1qAV1xOGX4LH0eA+PTXxElJubpoHJpzl8fWpeFUYcgQhzXacG
vzT8tBvfvpCNbbDgq++YmoWohIUaVAD8slWyGFgqD/9lzlXlr3CcyMWs6N8ngLwbOt7LD+aJsPW
lQdDd4gHVnQx9a+Z0Q50oNpdU/7hk7lEQ2MtYi8uMI+W8/869a2vg7BmgO7k2fEmFo/O4aif4MG
L+Jxdj5HIncbDLPbM+/1mP4Z3uVLu1no8YiPcvy2
X-Received: by 2002:a17:907:6ea8:b0:bfe:ed74:524 with SMTP id
a640c23a62f3a-bfeed740576mr399260066b.51.1781455259659; Sun, 14 Jun 2026
09:40:59 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
HTTPREST; Sun, 14 Jun 2026 11:40:59 -0500
Received: from 753933720722 named unknown by gmailapi.google.com with
HTTPREST; Sun, 14 Jun 2026 11:40:59 -0500
From: =?UTF-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
<lumarzeli30@HIDDEN>
In-Reply-To: <359486e4-9a5c-4503-952e-c5c00126b24e@HIDDEN>
References: <359486e4-9a5c-4503-952e-c5c00126b24e@HIDDEN>
MIME-Version: 1.0
Date: Sun, 14 Jun 2026 11:40:59 -0500
X-Gm-Features: AVVi8Cfxe8CgT-S-lr3mu0f2UbF77tbbL9NWsHB6wJMeKkIhBFHTSrW10Y2GRWw
Message-ID: <CAOR1sLxjbjm9o9xswivam8gyiBmnt59bT53bV5-L3=Od8vNSpQ@HIDDEN>
Subject: Re: bug#81232: c-ts-mode: Error applying c-ts-mode-indent-style via
dir-locals and setopt-local
To: James Cherti <contact@HIDDEN>, 81232 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: James Cherti writes: > Opening a file within a project that
sets c-ts-mode-indent-style via > .dir-locals.el causes a backtrace error
on the master branch. > > Steps to reproduce: > 1. Enter a directory with
a .dir-locals [...]
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [2a00:1450:4864:20:0:0:0:62f listed in]
[list.dnswl.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (lumarzeli30[at]gmail.com)
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit (lumarzeli30[at]gmail.com)
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay
lines
X-Debbugs-Envelope-To: 81232
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)
James Cherti <contact@HIDDEN> writes:
> Opening a file within a project that sets c-ts-mode-indent-style via
> .dir-locals.el causes a backtrace error on the master branch.
>
> Steps to reproduce:
> 1. Enter a directory with a .dir-locals.el file that configures
> c-ts-mode-indent-style. For example:
> ((c-ts-mode . ((c-ts-mode-indent-style . gnu))))
> 2. Open a C file within that project tree (e.g., src/xdisp.c).
> 3. Observe the setopt--set-local debugger error.
>
> Backtrace
> Debugger entered--Lisp error: (error "The setter of
> c-ts-mode-indent-style does not support setopt-local")
> error("The setter of %S does not support setopt-local"
> c-ts-mode-indent-style)
> setopt--set-local(c-ts-mode-indent-style gnu)
> #<subr hack-one-local-variable>(c-ts-mode-indent-style gnu)
> apply(#<subr hack-one-local-variable> (c-ts-mode-indent-style gnu))
> hack-one-local-variable(c-ts-mode-indent-style gnu)
> hack-local-variables-apply()
> hack-local-variables(no-mode)
> run-mode-hooks(c-ts-mode-hook)
> c-ts-mode()
> ...
> xref--find-definitions(#("redisplay-skip-fontification-on-input" 0
> 37 (pos 17551)) nil)
>
> --
> James Cherti
> GitHub: https://github.com/jamescherti
> Website: https://www.jamescherti.com/
>
>
>
>
forcemerge 81151 81232
thanks
(Am I doing this right?)
--=20
=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9
bug-gnu-emacs@HIDDEN:bug#81232; Package emacs.
Full text available.
Received: (at 81232) by debbugs.gnu.org; 14 Jun 2026 16:38:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 14 12:38:36 2026
Received: from localhost ([127.0.0.1]:33211 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wYnr2-0001qe-9d
for submit <at> debbugs.gnu.org; Sun, 14 Jun 2026 12:38:36 -0400
Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]:42106)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
id 1wYnqz-0001qJ-92
for 81232 <at> debbugs.gnu.org; Sun, 14 Jun 2026 12:38:33 -0400
Received: by mail-ua1-x92f.google.com with SMTP id
a1e0cc1a2514c-963b09d5b91so2263087241.0
for <81232 <at> debbugs.gnu.org>; Sun, 14 Jun 2026 09:38:33 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1781455107; cv=none;
d=google.com; s=arc-20240605;
b=IUu0KE8m7d01ZLmu48Z0HYyC+FVQsRwEHK4czB6EEszfNwPh2IvQOVPSegHhzzeDcV
kaXKYviCL3UBUihmlGtzWmqH4FXskobCbxx+mYivUef1dy8q+gtCeo/GNTVbfwO6yZWI
HRVb7EQZchtMvHL/kE4iMK7n9GmdTgUvgA3pQCOKZz2zCj6MMe+SNpcoYd0pPI2C85Wu
tWmcYk5TltalCAg7lOCsr8V1ISdX80N+2WMJQvyj0RUbJ4gAVitAPJCtgiaopeOpzmoB
grNec0VRfdmh4XpSWhqFQ9pIsya7Bv2sC1aEPgMXIREitjL5D322pYAbCUbEgk3udKiO
DrjA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=serLPbHT1uv9CIxPgjM34hs1pzpFvt8uXlrfWUfk8QQ=;
fh=VhV00BuLtZHgGEBb5yR9+UzYuCBJV5aTYWo1wpD1QHE=;
b=D2ul26GafBEsZN0YE99cvYm1rp3ayVCmj2lEEbPylQA5dKiQKsPy63jpEgMWsSZXBL
MCdyMKH/HKa1dsRWfCLtgfaxZ37YIuBQiSrxYkWkA549UQ1+kqRVAjazv7wfANBEea2s
Mb040B0MHXvSQ3LGMkPtuCfLTJ7+OuzLSnpXIqt17GCZ/LKwxYqo+HgsrQKF8yVYdDVK
Y99AVQy/rI0EfDAeq702Z7W3TwrKbQot44JhakHKNwHqaherQPyWtXfsPsdSNcRPr0VZ
NljEOFCIxk2PmzCVw/0baiOUCB7RPWTrnN+YN1Oza6KDR7fioD5edvyDD45HzZptdNBY
ei8w==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1781455107; x=1782059907; darn=debbugs.gnu.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=serLPbHT1uv9CIxPgjM34hs1pzpFvt8uXlrfWUfk8QQ=;
b=IXQ7Mw6Lr/xrcQ+hrQZViLVyLomFrBKsM6wTFqO+BWAlLcypjrs9eMj/Ryx/yxgXsp
6MJDI5QuaC2GtCGz5vf/8Wlr+atRSfoaJl4ggvzWO7vwH8TF2fDapoqDAWUTVzXgdIxp
kPC0m240a7MzxRF9fkI2C8hKEfa/xauhsbbRNVMKDVpP8Qyg2ZHBFn8zsxT6FaqE3xuY
k0QZYj3w0Yr/6NfjtL3eehde0YQio4Pp75dxMdFrLO6C+oo8VSNwz0gTiDt/J3/XqSdA
ULEkUlTSzcGNx4AR/dHwxdNKdfvnrxlmcFFzZ3w93PGyJT2CzGY1p1gdPZuR5kVVi3QK
s5gQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1781455107; x=1782059907;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=serLPbHT1uv9CIxPgjM34hs1pzpFvt8uXlrfWUfk8QQ=;
b=dhxdGqSV76QRWBAsexUYdqx8Aw39FJv0iLngo5sFkbFtM2qsCPKD3dnNGuLBFqRt/u
8uG9Th1d5kdkj/v//TCfsUjZA5zSuOw03xQoOjdGzDKkMpXPKsuGtuSSSeAmkFXr3t6N
uW5NgxvLrvRenoSrgJCf6nUKxcXjhiEq6hwFY7BlcrAeBneNa9zuh9TXGGkut8ox5H7Z
EOMv4ULY81IBnXY1sYc0cWnqV12TRNKXOS1H8SxGNhGgs5AKA3+cZvecSNVpKJ4rSlMb
o1yml3uxvKdWY12YrkcdcxmdKTqbnRtMafuLeQaH7/u7dOD18PNIFl3V3r8KUD+7+uqp
LyOQ==
X-Gm-Message-State: AOJu0YylEDW0YYrtfJaetaRvtfui1xGmG+RAHz0jUKo+bME9RgoxC7fw
c7AVlc665RTsQC8M7Vvx9nCv7/zvhdt91BvM1S7tb+Tx0BRPszYEVX4s6QyxUg2y7w6hHovZCtF
r5eOfNJ0A5VrFnMvcTjKGT/cuePuc2kOlR5jT
X-Gm-Gg: Acq92OEiKGG8wzm8gZGjzABRhYwMc4jsUcdBctOpWP6fcFEvZEuEtfrcOMJZEsca+41
8+QdBdywPQpRTX5BwkIhEPpQERQr37nA8GBg9Xy/6N74/Pwnr33PSY5B2XUmanwZWTYjV8xL3to
UpPCqRryBEqkQcM6t18LmWD5eTcEEXt2K9gcLxyrl5bRZ8koe+SIBowiSaOoCf1+QVB0fImnTom
TK+7omYCrYBck3bZpjx+VVHWVCqWlulnu1aMAAekm4EyfddPasZQNe/tSYGazNbvykuHbBFpN1x
opgtPyfqWkQbdwRThE9ePzvJJVNKKQXzn+EaoC7A/OEpMe66yq0007njt63Wy9A1eVbyFcdnYCW
nCU09xpeDdHP2tdPDfB+/2Aalq5PErrIvnZMCMgU2BAB6C+TFIwZZZ5tus37ND+t2D5QYa2kEZR
KeCXgylf7YadBv2K/g48mHN8chgjDjEQ==
X-Received: by 2002:a05:6102:5f04:b0:631:c17c:2417 with SMTP id
ada2fe7eead31-71e89aac42dmr3954011137.8.1781455107659; Sun, 14 Jun 2026
09:38:27 -0700 (PDT)
MIME-Version: 1.0
References: <359486e4-9a5c-4503-952e-c5c00126b24e@HIDDEN>
<CAN+1Hbqo0KiiWAgWbEgk9tNZCseA0JJKxrRg9UmUBEnczTS6_Q@HIDDEN>
In-Reply-To: <CAN+1Hbqo0KiiWAgWbEgk9tNZCseA0JJKxrRg9UmUBEnczTS6_Q@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Sun, 14 Jun 2026 12:38:15 -0400
X-Gm-Features: AVVi8CdJ4DtfWGrk7vHeLnpEv-2IUAiwnZYPJ4Vwd5ow7itlnoOZGVe-4PrIXrE
Message-ID: <CAN+1HbpWedV1_BX68rXdcR-NOK0vHgMMaaJ5wd94hsjJaYOsHw@HIDDEN>
Subject: Re: bug#81232: c-ts-mode: Error applying c-ts-mode-indent-style via
dir-locals and setopt-local
To: James Cherti <contact@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000e01d0406543956e1"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81232
Cc: 81232 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)
--000000000000e01d0406543956e1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, Jun 14, 2026 at 12:37=E2=80=AFPM St=C3=A9phane Marks <shipmints@gma=
il.com> wrote:
> merge 81232 81151
> stop
>
> On Sun, Jun 14, 2026 at 12:01=E2=80=AFPM James Cherti <contact@jameschert=
i.com>
> wrote:
>
>> Opening a file within a project that sets c-ts-mode-indent-style via
>> .dir-locals.el causes a backtrace error on the master branch.
>>
>> Steps to reproduce:
>> 1. Enter a directory with a .dir-locals.el file that configures
>> c-ts-mode-indent-style. For example:
>> ((c-ts-mode . ((c-ts-mode-indent-style . gnu))))
>> 2. Open a C file within that project tree (e.g., src/xdisp.c).
>> 3. Observe the setopt--set-local debugger error.
>>
>> Backtrace
>> Debugger entered--Lisp error: (error "The setter of
>> c-ts-mode-indent-style does not support setopt-local")
>> error("The setter of %S does not support setopt-local"
>> c-ts-mode-indent-style)
>> setopt--set-local(c-ts-mode-indent-style gnu)
>> #<subr hack-one-local-variable>(c-ts-mode-indent-style gnu)
>> apply(#<subr hack-one-local-variable> (c-ts-mode-indent-style gnu))
>> hack-one-local-variable(c-ts-mode-indent-style gnu)
>> hack-local-variables-apply()
>> hack-local-variables(no-mode)
>> run-mode-hooks(c-ts-mode-hook)
>> c-ts-mode()
>> ...
>> xref--find-definitions(#("redisplay-skip-fontification-on-input" 0
>> 37 (pos 17551)) nil)
>>
>
> This is in my queue bug#81151.
>
P.S. A change we'll install today/tomorrow will also reduce the error to a
warning and do the deed anyway.
--000000000000e01d0406543956e1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
On Sun, Jun 14, 2026 at 12:37=E2=80=AFPM St=C3=A9phane Marks <<a href=3D=
"mailto:shipmints@HIDDEN">shipmints@HIDDEN</a>> wrote:</span></div=
></div><div class=3D"gmail_quote gmail_quote_container"><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div sty=
le=3D"font-family:monospace"><span style=3D"font-family:Arial,Helvetica,san=
s-serif">merge 81232=C2=A0</span><span style=3D"font-family:Arial,Helvetica=
,sans-serif">81151</span></div><div style=3D"font-family:monospace"><span s=
tyle=3D"font-family:Arial,Helvetica,sans-serif">stop</span></div><div style=
=3D"font-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-=
serif"><br></span></div><div style=3D"font-family:monospace"><span style=3D=
"font-family:Arial,Helvetica,sans-serif">On Sun, Jun 14, 2026 at 12:01=E2=
=80=AFPM James Cherti <<a href=3D"mailto:contact@HIDDEN" target=
=3D"_blank">contact@HIDDEN</a>> wrote:</span></div></div><div c=
lass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Open=
ing a file within a project that sets c-ts-mode-indent-style via<br>
.dir-locals.el causes a backtrace error on the master branch.<br>
<br>
Steps to reproduce:<br>
1. Enter a directory with a .dir-locals.el file that configures<br>
=C2=A0 =C2=A0 c-ts-mode-indent-style. For example:<br>
=C2=A0 =C2=A0 ((c-ts-mode . ((c-ts-mode-indent-style . gnu))))<br>
2. Open a C file within that project tree (e.g., src/xdisp.c).<br>
3. Observe the setopt--set-local debugger error.<br>
<br>
Backtrace<br>
=C2=A0 =C2=A0Debugger entered--Lisp error: (error "The setter of <br>
c-ts-mode-indent-style does not support setopt-local")<br>
=C2=A0 =C2=A0 error("The setter of %S does not support setopt-local&qu=
ot; <br>
c-ts-mode-indent-style)<br>
=C2=A0 =C2=A0 setopt--set-local(c-ts-mode-indent-style gnu)<br>
=C2=A0 =C2=A0 #<subr hack-one-local-variable>(c-ts-mode-indent-style =
gnu)<br>
=C2=A0 =C2=A0 apply(#<subr hack-one-local-variable> (c-ts-mode-indent=
-style gnu))<br>
=C2=A0 =C2=A0 hack-one-local-variable(c-ts-mode-indent-style gnu)<br>
=C2=A0 =C2=A0 hack-local-variables-apply()<br>
=C2=A0 =C2=A0 hack-local-variables(no-mode)<br>
=C2=A0 =C2=A0 run-mode-hooks(c-ts-mode-hook)<br>
=C2=A0 =C2=A0 c-ts-mode()<br>
=C2=A0 =C2=A0 ...<br>
=C2=A0 =C2=A0 xref--find-definitions(#("redisplay-skip-fontification-o=
n-input" 0 <br>
37 (pos 17551)) nil)<br></blockquote><div><br></div><div style=3D"font-fami=
ly:monospace">This is in my queue=C2=A0bug#81151.</div></div></div></blockq=
uote><div><br></div><div class=3D"gmail_default" style=3D"font-family:monos=
pace">P.S. A change we'll install today/tomorrow will also reduce the e=
rror to a warning and do the deed anyway.</div></div></div>
--000000000000e01d0406543956e1--
bug-gnu-emacs@HIDDEN:bug#81232; Package emacs.
Full text available.Stéphane Marks <shipmints@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.
Received: (at 81232) by debbugs.gnu.org; 14 Jun 2026 16:37:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 14 12:37:48 2026
Received: from localhost ([127.0.0.1]:33205 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wYnqF-0001oH-N4
for submit <at> debbugs.gnu.org; Sun, 14 Jun 2026 12:37:48 -0400
Received: from mail-ua1-x931.google.com ([2607:f8b0:4864:20::931]:43430)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
id 1wYnqA-0001np-P4
for 81232 <at> debbugs.gnu.org; Sun, 14 Jun 2026 12:37:44 -0400
Received: by mail-ua1-x931.google.com with SMTP id
a1e0cc1a2514c-9638f7e9896so2057034241.1
for <81232 <at> debbugs.gnu.org>; Sun, 14 Jun 2026 09:37:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1781455057; cv=none;
d=google.com; s=arc-20240605;
b=hvl/wIeMpiIolubkgHaeKAL1AI5FOWv6s4wssiTzXLXjRnUkg7Lu5xGYn5KiM6xg0/
+63Cno/1D57xAjhFSQwjcldMsN3aq4CQbSpjlABpE2E2/joxJuvbgTIo2RTtXEKIPW4o
1cOK481tL5eNjiOWC82/JfB7aBJKoOpETMrtfCnHvadCG9rfqFupNr6i1/9zX625bW+G
MtNFzF50OIw5dhdYPQdsmHyJZCKCfQvJZdha14bUVSdKNdL7u+kslj0nNyZU/sJAdzzq
mUHlvzWduNv/jRdnHE/Qc+9mXHO7xfrhrLB0G5mfwwX4j8gDYTdwNGoz0IH9ldukeOcE
RcBg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=ZbBhNp4lnu3DpASGytbyns6RNI+MGy26CbeJoolTj9Q=;
fh=VhV00BuLtZHgGEBb5yR9+UzYuCBJV5aTYWo1wpD1QHE=;
b=FF83VkDE3FKO5M4QOqhJM/gnbvPlEGhqyFdXPzmU9enIkDd7imJEHBE6g8S30K0I/W
bXL8veRS2cZbL5UhwmMYwvUhpIbmajYJFtuvUVcSRs/+IG1aRCY0qVXUE1dr6dC8bzEE
CAgMraIcAPbroxfzaRs2k62oxQYcPXxRrDob8fEMExexul2qjzAzN7XPT7MlowzpCa5b
/YpiVv+FawcRdX8y0Qn/ZgRQs4umyhhK/eDJqMzUCFIETL9nXn3jSKAhfZfRzAoI8tlz
CtfVTo3YbM6OTyECVhZPPHr89EKd1EtAgoCZmbFm5rIHWLJYZ+C5EwURTTI9YvhNVys8
5OuQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1781455057; x=1782059857; darn=debbugs.gnu.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=ZbBhNp4lnu3DpASGytbyns6RNI+MGy26CbeJoolTj9Q=;
b=EFqHnNL7BGK5EQ1eA+rSez5QyMbqi2qBofRjJ22+L6arV2+s1aY6YUOv+0acWMgHML
doIEZ1Le6TbBl27h6vZF+rGOIKS9c8FSrY3WTpHxdO93z/W2Rx0pNj5T0gUatPC2Cqhf
Xa3exnF657U3857fdr5seceOAwuSUQeMnpiJNZhaQcJWLfPIxd1tz8c1Tag3NEc2WWLf
DqiH7O69A6FerKFtjZ0CrpEDQuhopbrtqnRl37D7c4VLed0e4TcskNUL1m5BBNAxZ4FB
vh0hdbHAgqMDogpgtmKiz5Yf2pKOfJrLpLaEagYozQYXR9r0nSdDNmU/tE48WX1s3Cs7
n19Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1781455057; x=1782059857;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=ZbBhNp4lnu3DpASGytbyns6RNI+MGy26CbeJoolTj9Q=;
b=Nfej0CUgCb7pw6dBFqFHAtEU/ZJi1O+X9yPGPW+bizMz2UBo4rVAY27jpGfhjux+DJ
SaALltSfE7ZRtqh04KcWBlSyJAlxU2hCQznwCwkflDvNB82qiufcVIiMobNTyV5vt+Hh
MqaZKzy4aDxt+bLqB+SxrtA72OWJKo5Cn85JO1pfZ3NgLhd0jV/bsnBA6zwOjtBHPH8b
4PSkBAQafVlwvpTTUj6790G7yUoct1sqb86ArKJzbQXeNPIHlQeyPEv4ro5J1Ra9PbBO
LnvZdOX266fFbs8/bOaDItShX4QMmZPdF44TlWle+TwMRegSeBfwEGKrs1ISLmHzX/Dh
K25A==
X-Gm-Message-State: AOJu0YwfXaTtnbwoAOi151KQVe81F6OhF3Rjh1mICvmDpTqgJvq+YLnf
REFzpj72k1ryr0gh9WFyDm7/ViqqPZQRAZuc+rJx6ydYg2PN6zS9ZwVqt4is+TA2lmYlHdsxZA1
Diuy66bGrp9WSxuk+l+XBHQVLXo6I75w=
X-Gm-Gg: Acq92OEyzgvu4cToanEch2Wadxa7WddFzPHRJ8Jjrk7XJ1qPs/+WQjT+zatvXsiTTMO
aBu+4tjsEXQ1ZwLsuOpx/Ev8etJaZdaxYbhxIMO8ce2PbaqSV/FTI1O36WWI55LVoc4zSxtKvEm
YtO0oA3SbhKlgsKGVh/p78Ul5eofADjAokNdvuObar7IrHF9aqkUAz2GhTj74oKF+MXvh2BfQqM
JeJlfQuMPU6/FLUMkwqOvMnuZaoXKtr/i8tXDC6nU0N8UInAN4ZhFeE3Mdt1Eq5XDac2ArB7yLf
jNufFUjiod+uKJ6jcW1ZDlWdh4j27seKWbVX+nRmK+lDf5MJI24UDH2gkrP0s6Swzw8IoBGHNlr
51Pp0LKVZjMgKiAgQILtg9KFfjlI689dPi0TADrdZEPq9bJZ3kylcNJtubQylMMCD9/eNupma1H
4ndhyMz1Q2A1YFpSFriCjF293zGUpklA==
X-Received: by 2002:a05:6102:2906:b0:631:4385:15cc with SMTP id
ada2fe7eead31-71e899923aamr4543430137.1.1781455056901; Sun, 14 Jun 2026
09:37:36 -0700 (PDT)
MIME-Version: 1.0
References: <359486e4-9a5c-4503-952e-c5c00126b24e@HIDDEN>
In-Reply-To: <359486e4-9a5c-4503-952e-c5c00126b24e@HIDDEN>
From: =?UTF-8?Q?St=C3=A9phane_Marks?= <shipmints@HIDDEN>
Date: Sun, 14 Jun 2026 12:37:26 -0400
X-Gm-Features: AVVi8CeEJyQC8ID53JqefHpQptEurU2-C41Ad-bVGzjYNxk33nUmbQDlhIfkpgE
Message-ID: <CAN+1Hbqo0KiiWAgWbEgk9tNZCseA0JJKxrRg9UmUBEnczTS6_Q@HIDDEN>
Subject: Re: bug#81232: c-ts-mode: Error applying c-ts-mode-indent-style via
dir-locals and setopt-local
To: James Cherti <contact@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000d99a6a0654395346"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81232
Cc: 81232 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)
--000000000000d99a6a0654395346
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
merge 81232 81151
stop
On Sun, Jun 14, 2026 at 12:01=E2=80=AFPM James Cherti <contact@jamescherti.=
com>
wrote:
> Opening a file within a project that sets c-ts-mode-indent-style via
> .dir-locals.el causes a backtrace error on the master branch.
>
> Steps to reproduce:
> 1. Enter a directory with a .dir-locals.el file that configures
> c-ts-mode-indent-style. For example:
> ((c-ts-mode . ((c-ts-mode-indent-style . gnu))))
> 2. Open a C file within that project tree (e.g., src/xdisp.c).
> 3. Observe the setopt--set-local debugger error.
>
> Backtrace
> Debugger entered--Lisp error: (error "The setter of
> c-ts-mode-indent-style does not support setopt-local")
> error("The setter of %S does not support setopt-local"
> c-ts-mode-indent-style)
> setopt--set-local(c-ts-mode-indent-style gnu)
> #<subr hack-one-local-variable>(c-ts-mode-indent-style gnu)
> apply(#<subr hack-one-local-variable> (c-ts-mode-indent-style gnu))
> hack-one-local-variable(c-ts-mode-indent-style gnu)
> hack-local-variables-apply()
> hack-local-variables(no-mode)
> run-mode-hooks(c-ts-mode-hook)
> c-ts-mode()
> ...
> xref--find-definitions(#("redisplay-skip-fontification-on-input" 0
> 37 (pos 17551)) nil)
>
This is in my queue bug#81151.
--000000000000d99a6a0654395346
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">=
merge 81232=C2=A0</span><span style=3D"font-family:Arial,Helvetica,sans-ser=
if">81151</span></div><div class=3D"gmail_default" style=3D"font-family:mon=
ospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">stop</span><=
/div><div class=3D"gmail_default" style=3D"font-family:monospace"><span sty=
le=3D"font-family:Arial,Helvetica,sans-serif"><br></span></div><div class=
=3D"gmail_default" style=3D"font-family:monospace"><span style=3D"font-fami=
ly:Arial,Helvetica,sans-serif">On Sun, Jun 14, 2026 at 12:01=E2=80=AFPM Jam=
es Cherti <<a href=3D"mailto:contact@HIDDEN">contact@jameschert=
i.com</a>> wrote:</span></div></div><div class=3D"gmail_quote gmail_quot=
e_container"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Opening a fi=
le within a project that sets c-ts-mode-indent-style via<br>
.dir-locals.el causes a backtrace error on the master branch.<br>
<br>
Steps to reproduce:<br>
1. Enter a directory with a .dir-locals.el file that configures<br>
=C2=A0 =C2=A0 c-ts-mode-indent-style. For example:<br>
=C2=A0 =C2=A0 ((c-ts-mode . ((c-ts-mode-indent-style . gnu))))<br>
2. Open a C file within that project tree (e.g., src/xdisp.c).<br>
3. Observe the setopt--set-local debugger error.<br>
<br>
Backtrace<br>
=C2=A0 =C2=A0Debugger entered--Lisp error: (error "The setter of <br>
c-ts-mode-indent-style does not support setopt-local")<br>
=C2=A0 =C2=A0 error("The setter of %S does not support setopt-local&qu=
ot; <br>
c-ts-mode-indent-style)<br>
=C2=A0 =C2=A0 setopt--set-local(c-ts-mode-indent-style gnu)<br>
=C2=A0 =C2=A0 #<subr hack-one-local-variable>(c-ts-mode-indent-style =
gnu)<br>
=C2=A0 =C2=A0 apply(#<subr hack-one-local-variable> (c-ts-mode-indent=
-style gnu))<br>
=C2=A0 =C2=A0 hack-one-local-variable(c-ts-mode-indent-style gnu)<br>
=C2=A0 =C2=A0 hack-local-variables-apply()<br>
=C2=A0 =C2=A0 hack-local-variables(no-mode)<br>
=C2=A0 =C2=A0 run-mode-hooks(c-ts-mode-hook)<br>
=C2=A0 =C2=A0 c-ts-mode()<br>
=C2=A0 =C2=A0 ...<br>
=C2=A0 =C2=A0 xref--find-definitions(#("redisplay-skip-fontification-o=
n-input" 0 <br>
37 (pos 17551)) nil)<br></blockquote><div><br></div><div class=3D"gmail_def=
ault" style=3D"font-family:monospace">This is in my queue=C2=A0bug#81151.</=
div></div></div>
--000000000000d99a6a0654395346--
bug-gnu-emacs@HIDDEN:bug#81232; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 14 Jun 2026 15:59:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 14 11:59:21 2026
Received: from localhost ([127.0.0.1]:32949 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wYnF2-00085Z-Kl
for submit <at> debbugs.gnu.org; Sun, 14 Jun 2026 11:59:21 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:51154)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <contact@HIDDEN>)
id 1wYnF0-00085H-AP
for submit <at> debbugs.gnu.org; Sun, 14 Jun 2026 11:59:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <contact@HIDDEN>)
id 1wYnEu-0005UN-S9
for bug-gnu-emacs@HIDDEN; Sun, 14 Jun 2026 11:59:12 -0400
Received: from shrimp.cherry.relay.mailchannels.net ([23.83.223.164])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <contact@HIDDEN>)
id 1wYnEt-0007z6-8J
for bug-gnu-emacs@HIDDEN; Sun, 14 Jun 2026 11:59:12 -0400
X-Sender-Id: dreamhost|x-authsender|contact@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id E872E4017F1
for <bug-gnu-emacs@HIDDEN>; Sun, 14 Jun 2026 15:59:07 +0000 (UTC)
Received: from pdx1-sub0-mail-a227.dreamhost.com
(100-96-1-149.trex-nlb.outbound.svc.cluster.local [100.96.1.149])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id 8ACD84010E0
for <bug-gnu-emacs@HIDDEN>; Sun, 14 Jun 2026 15:59:07 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|contact@HIDDEN
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|contact@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Irritate-Towering: 50b27c7405dc4731_1781452747780_1564087635
X-MC-Loop-Signature: 1781452747780:2696299744
X-MC-Ingress-Time: 1781452747780
Received: from pdx1-sub0-mail-a227.dreamhost.com (pop.dreamhost.com
[64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
by 100.96.1.149 (trex/7.1.5); Sun, 14 Jun 2026 15:59:07 +0000
Received: from [192.168.5.23] (24-212-139-140.cable.teksavvy.com
[24.212.139.140])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits))
(No client certificate requested)
(Authenticated sender: contact@HIDDEN)
by pdx1-sub0-mail-a227.dreamhost.com (Postfix) with ESMTPSA id 4gddGg1zflz1NM
for <bug-gnu-emacs@HIDDEN>; Sun, 14 Jun 2026 08:59:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jamescherti.com;
s=dreamhost; t=1781452747;
bh=hEsEA/FDL90axH8F73TdSeOkEo9xHKA0Ce2FhCJiHQk=;
h=Date:To:From:Subject:Content-Type:Content-Transfer-Encoding;
b=JN9ozYUgVbGwIWjlAsMHhA3EM0IW7HxfUXkgmxwbWceQOJcYPdPytdpz9YbkKFmqH
+R6BkMHwFkXbNAsZOpt8GMrgqWil4EHnSgAdNbGNRyV4yMEN5DXXRIK2XnWAOVO30p
wYgzw85N38H9H7KrQl5vQSjDCB8ji7kW59DnEm1S2FpGLZ6nleuQy3GV5Qlv71Wl3y
yK+7XEQlVzrXUsynqjAbQDLb2cwKIiVoyk9EODmMn54d+nEAhXPTxebkn7Knr2qGB5
6uoFaaagKTl6t2c2NfGL9/C5eNoAGJzF4o7VK5BCZIpBtaRFmdglqYGPWP9oG4iB8S
MwrbEgMfMEGmA==
Message-ID: <359486e4-9a5c-4503-952e-c5c00126b24e@HIDDEN>
Date: Sun, 14 Jun 2026 11:59:06 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: James Cherti <contact@HIDDEN>
Subject: c-ts-mode: Error applying c-ts-mode-indent-style via dir-locals and
setopt-local
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=23.83.223.164;
envelope-from=contact@HIDDEN;
helo=shrimp.cherry.relay.mailchannels.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
Opening a file within a project that sets c-ts-mode-indent-style via
.dir-locals.el causes a backtrace error on the master branch.
Steps to reproduce:
1. Enter a directory with a .dir-locals.el file that configures
c-ts-mode-indent-style. For example:
((c-ts-mode . ((c-ts-mode-indent-style . gnu))))
2. Open a C file within that project tree (e.g., src/xdisp.c).
3. Observe the setopt--set-local debugger error.
Backtrace
Debugger entered--Lisp error: (error "The setter of
c-ts-mode-indent-style does not support setopt-local")
error("The setter of %S does not support setopt-local"
c-ts-mode-indent-style)
setopt--set-local(c-ts-mode-indent-style gnu)
#<subr hack-one-local-variable>(c-ts-mode-indent-style gnu)
apply(#<subr hack-one-local-variable> (c-ts-mode-indent-style gnu))
hack-one-local-variable(c-ts-mode-indent-style gnu)
hack-local-variables-apply()
hack-local-variables(no-mode)
run-mode-hooks(c-ts-mode-hook)
c-ts-mode()
...
xref--find-definitions(#("redisplay-skip-fontification-on-input" 0
37 (pos 17551)) nil)
--
James Cherti
GitHub: https://github.com/jamescherti
Website: https://www.jamescherti.com/
James Cherti <contact@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#81232; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.