From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kenta USAMI Newsgroups: gmane.emacs.bugs Subject: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width Date: Fri, 25 Oct 2024 02:49:08 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000438a2306253c9f08" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6024"; mail-complaints-to="usenet@ciao.gmane.io" To: 73991@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 19:50:48 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t41yx-0001OF-FZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 19:50:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t41yk-00047v-SG; Thu, 24 Oct 2024 13:50:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t41yi-00047X-AH for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:50:32 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t41yh-0001pd-JI for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:50:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=+IDEGdjAoQFCHVw5EOify3ssLojqOn9iif6yyG2legI=; b=UtgYO9gjE2Qqd2QI/PskUujR6Bl2PLOGLGFt4yI8j70uG3dwzmLyo/9ZzAtltBFi9E+FprHb14N1FsWUDh20JfEBt4IS0gYFkwSGCYhmVfbSFJJ2BOh8pm7OL8ysfGYztzqy2TDHGf4gfxByGzuCmN5COD0EGT+rZJshJ9LXFaTHKKS+fhI8ngmJAc/SHbHgkiRXgr86zI9oQZy1waGbstLSFlZgj/2WAJt2NJezsnOY7IlWUGGmixQKWOfC9+UcYn/A+vt0fSUO7bY02Eo9CKgkg5UbgbEfc3U++lcRAcnTvsMgcuCGl37jvWxG9rEW4b+aSx8SDK4UPfWcScu57w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t41zB-00081u-Tw for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenta USAMI Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Oct 2024 17:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73991 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172979222230453 (code B ref -1); Thu, 24 Oct 2024 17:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2024 17:50:22 +0000 Original-Received: from localhost ([127.0.0.1]:36096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t41yX-0007v6-Tt for submit@debbugs.gnu.org; Thu, 24 Oct 2024 13:50:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t41yV-0007uv-HL for submit@debbugs.gnu.org; Thu, 24 Oct 2024 13:50:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t41xk-0003xh-7h for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:49:35 -0400 Original-Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t41xa-0001Y1-I3 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 13:49:24 -0400 Original-Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-6e5a15845easo11659187b3.0 for ; Thu, 24 Oct 2024 10:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zonu-me.20230601.gappssmtp.com; s=20230601; t=1729792160; x=1730396960; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+IDEGdjAoQFCHVw5EOify3ssLojqOn9iif6yyG2legI=; b=Ls/GZSTEQyZotKZP6Vb7Kdxd/H9p5o+1BfpHlw/p6N/qS3RSHT8rseXYNBn6jIGpmL uA9qBZCjrBhzp9IwqY6ehCW6fWKg4DX64KS6Sm2aTBP95RwXMW0g0n3hL0T7mZePiGM4 j+vglD7pe2XX0RL0BOaxI/Oyd8HviTrBAonFqsufh1xr7uEMLlNalfZyeIov2puWJxYE 1N+EkmnqCrEniO/Y6h1C4btSF+YTnksLfq7rSrkqbMlx4avU9vVtahVZDJK5hhGZDRLB IuViES+s6oJHZ+uQK2X30Bsb97fM5fYyK6Jn+0b64kZesUEgp4f5+YSJR/Z2n9sQYzzJ RRdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729792160; x=1730396960; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+IDEGdjAoQFCHVw5EOify3ssLojqOn9iif6yyG2legI=; b=FfYXMcZf75vHBw/FUrPLTQFCbom0bSqbZAsaprNV1yKruKT2Poj75WeSXAaDkewyg/ h0tggIkBnvm7LGVPzr5oKYx/K+4gwLANr9aYCY+sZps1UubfULkiBHB4PT3/Jb0ngAHg 6uUYytH5kR4AyoldM7rOIAtKtAO8tAwiH4cLHSsY23gsVk7NLYXBOmM9HuRUYEEVq+PD Pj0VmpA6tPjkKArJ0bX21l8l1J5FnTQO0S+egwCWrlieGLBi6kolgNfqmP/f5fpfIKbc bRY04REXZYogZOOtGSDeKxvCLltsAhUl0aek0l32bZL4GCzsS33+hh5IZuANU3dPawjr SJuw== X-Gm-Message-State: AOJu0YylEmbICZDkYJwp8xG2IkyJpZ33LyQ4w5lNfUsWrb04d0Lbjt6K q1M7CILDWOvZNXPXTl7mOdSWj+sHpvf4ETr7aUUGa9HUBTWXS3lo0tpIDg3EIVItWNQgarlpm/n sifl/KNgHeFtEVeicc9SnKr12wH359osxB7xYAP8RTYT1gKjZqnA= X-Google-Smtp-Source: AGHT+IGwTmXfA4BPeSwYfBxlVTajHpp0oyeadOo8SaJifHqentqpXnvTn5UHKfilkCEBc5WVT9ZWyvp7jsZSAhPSpjA= X-Received: by 2002:a05:690c:89:b0:6e3:28af:730d with SMTP id 00721157ae682-6e7f0fc562fmr77934007b3.43.1729792160524; Thu, 24 Oct 2024 10:49:20 -0700 (PDT) Received-SPF: none client-ip=2607:f8b0:4864:20::112e; envelope-from=zonuexe@zonu.me; helo=mail-yw1-x112e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294201 Archived-At: --000000000000438a2306253c9f08 Content-Type: text/plain; charset="UTF-8" I use Emacs 30.0.91 and editorconfig-mode. Emacs version is follows: > This is GNU Emacs 30.0.91 (build 1, aarch64-apple-darwin23.6.0, NS > appkit-2487.70 Version 14.7 (Build 23H124)) of 2024-10-22 I have an .editorconfig file like this: # .editorconfig root = true [*.js] indent_size = 4 indent_style = tab # .editorconfig ends here When I open a *.js file in the same directory, the tab-width variable is not set. In the editorconfig of Emacs 28.2 and NonGNU-devel ELPA 2024-Jul-28 version installed on another machine, when I add (debug-on-variable-change 'tab-width), I get a stack trace like this: Debugger entered--setting tab-width in buffer test.js to 4: debug--implement-debug-watch(tab-width 4 set #) editorconfig-set-indentation("tab" "4" "4") editorconfig-set-local-variables(#) editorconfig--advice-find-file-noselect(# "/home/tadsan/poc-emacs30-editorconfig/test.js") apply(editorconfig--advice-find-file-noselect # "/home/tadsan/poc-emacs30-editorconfig/test.js") find-file-noselect("/home/tadsan/poc-emacs30-editorconfig/test.js") command-line-1(("-l" "init.el" "test.js")) command-line() normal-top-level() Emacs version is follows: > GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu) of 2023-05-14, modified by Debian In Emacs 30.0.91, the debugger does not respond when watching the variable. The files I used to check the operation are below: https://github.com/zonuexe/poc-emacs30-editorconfig Thank you in advance for your work on the Emacs 30 release. --000000000000438a2306253c9f08 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I use Emacs 30.0.91 and editorconfig-mode.
=
Emacs version is follows:
> This is GNU Emacs 30.0.9= 1 (build 1, aarch64-apple-darwin23.6.0, NS
>=C2=A0 appkit-2487.70 Ver= sion 14.7 (Build 23H124)) of 2024-10-22

I have an .e= ditorconfig file like this:

# .editorconfig
<= div>root =3D true

[*.js]
indent_size =3D 4
indent_style =3D ta= b
# .editorconfig ends here

When I open = a *.js file in the same directory, the tab-width variable is not set.
=

In the editorconfig of Emacs 28.2 and NonGNU-devel ELPA= 2024-Jul-28 version installed on another machine, when I add (debug-on-var= iable-change 'tab-width), I get a stack trace like this:

=
Debugger entered--setting tab-width in buffer test.js to 4:
= =C2=A0 debug--implement-debug-watch(tab-width 4 set #<buffer test.js>= )
=C2=A0 editorconfig-set-indentation("tab" "4" &quo= t;4")
=C2=A0 editorconfig-set-local-variables(#<hash-table eql 3= /65 0x15612d120fc3>)
=C2=A0 editorconfig--advice-find-file-noselect(#= <subr find-file-noselect> "/home/tadsan/poc-emacs30-editorconfig= /test.js")
=C2=A0 apply(editorconfig--advice-find-file-noselect #&l= t;subr find-file-noselect> "/home/tadsan/poc-emacs30-editorconfig/t= est.js")
=C2=A0 find-file-noselect("/home/tadsan/poc-emacs30-e= ditorconfig/test.js")
=C2=A0 command-line-1(("-l" "i= nit.el" "test.js"))
=C2=A0 command-line()
=C2=A0 norma= l-top-level()

Emacs version is follows:
=
> GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu) of 2023-05-14= , modified by Debian

In Emacs 30.0.91, the debugge= r does not respond when watching the=C2=A0variable.

The files I used to check the operation are below:

Thank you in adva= nce for your work on the Emacs 30 release.
--000000000000438a2306253c9f08--