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: Sun, 27 Oct 2024 01:20:13 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000de8a340625639ced" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14713"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73991@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 26 18:22:56 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 1t4jZ2-0003e4-As for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Oct 2024 18:22:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4jYe-000752-MP; Sat, 26 Oct 2024 12:22:32 -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 1t4jYb-00074m-Q0 for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2024 12:22:30 -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 1t4jYb-000121-GO for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2024 12:22:29 -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:In-Reply-To:References:MIME-Version:To:Subject; bh=0vSkpx5L46SuvQ883tOM8K3oRNXhwlgi79VrDC+nrLw=; b=ZwVI5cVmdDeaLE+n+O239xHoIJYVAbzpS7nfnLFSU1IkS62hKf4TDPI6a6wbWLFpmwO7xNOUSdJTSJEEY4cAAp4M6sM6a/GiL7cwUohNNj8CBga2TjYmWycoMkI/YLEzQ6VunR7/f0lzxRQm9NzqhNczuvB3SBglOTeXPp1YAIHgotwXt0yAI7ik9XzSpDxpJQw+oDEHxFBvcQQwLkEY/VJQL6MS3wqN1hL1KiJDO5cuR7sSBR61a6SYIow7aqTUAM5Ie1bmn0e/vDNecbMTLDeWAkdCq2jys2EXoBXFKJFgvmpew7VW9ibhhAdLGeXZ23/SwOfbJQiKlYBnli3Oxw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4jZ8-0005iT-Kr for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2024 12:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenta USAMI Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Oct 2024 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73991 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 73991-submit@debbugs.gnu.org id=B73991.172995972521895 (code B ref 73991); Sat, 26 Oct 2024 16:23:02 +0000 Original-Received: (at 73991) by debbugs.gnu.org; 26 Oct 2024 16:22:05 +0000 Original-Received: from localhost ([127.0.0.1]:42366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4jYD-0005h3-41 for submit@debbugs.gnu.org; Sat, 26 Oct 2024 12:22:05 -0400 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:56699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4jYB-0005gW-LN for 73991@debbugs.gnu.org; Sat, 26 Oct 2024 12:22:04 -0400 Original-Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2e2bd347124so2295001a91.1 for <73991@debbugs.gnu.org>; Sat, 26 Oct 2024 09:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zonu-me.20230601.gappssmtp.com; s=20230601; t=1729959624; x=1730564424; 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=0vSkpx5L46SuvQ883tOM8K3oRNXhwlgi79VrDC+nrLw=; b=CiwtpXlJ656UjGWEgvR1LAiEjo9OSbOPzdme1d000pdDSMSRiiu+WEw0rXhIFHdUsx krKfgPnHPI9ztveeYKdf+2Ee58YWgD/+7DAEADiXOmmyX72/pQCSciuvmRw5NpToFilS JKwoX5nAxRWYRKPZUchTGY5lnrdGiljdeahaAODc1hUJazf7/h2bVfAm/fZqWNpPX1Sr qtlbMrylEe1ZLf+hnXuwllnnW2HUSugE8HZawlvfYTfji2Aq4zIPXOiwWK3/cSN5NMmq BvdRDU3SlJDnyhuboQk3zgYdwsMi/FMtps1x1BhuJSfPGeeL2CE0M7S2j4UHN/1D3IFC 1qVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729959624; x=1730564424; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0vSkpx5L46SuvQ883tOM8K3oRNXhwlgi79VrDC+nrLw=; b=iXa2yWbAmHakX0i7haL6TcEstl3y+NEl46atBvL64teA+Jc6/JKT7fZTuys/xJVorE mTdT0jIReiJGiWKR6ZjnnnzvXvd4GUORa7B4k94ZxWq0Ud4VpB85ryitXb41V7w4eA2N KtoamanbRbVWn0OZIqNCmyZz/fYaglCewi2hdNo+yaLc1tf2KJilxT5v23gCLI6WSQWx QmA1MXAYeQqGF2GjU36v/zUEqdhlH6NHAO97Sa8jiij+xPqzHdlxr4Bb/1rPpOaifQPH iHER+lWUhO3TkDvyoa6YTPAugm6OyqkTbVbRcpnf3PQCgyM3bP55bFNRvn//0BdCOZQl TSdw== X-Gm-Message-State: AOJu0YxCqdRio2nqQ3uNQRwZ8+WducNX1hXc9MKCxBB1CzJTHCh2krEr I57oywZU6EX0CaI9k+bwYzluN+cblmyG3StUtAFPggT4vZde/J5PMCxqCFvRUTiXLRZx9EI2Yta 9cSl21Gewsr+KPl/VP+kfBDp93lWYeH031mQA7A== X-Google-Smtp-Source: AGHT+IF0coYBcJGz3PTbzY6kIL1ZQA8RPXfhNi2VPTzMpsE7ZmwDXOKPXEv1gseLPhan+ZFZpmmXcxQ16XbdcXtXLCw= X-Received: by 2002:a17:90b:180d:b0:2e2:b204:90c5 with SMTP id 98e67ed59e1d1-2e8f11dced0mr4123565a91.33.1729959624074; Sat, 26 Oct 2024 09:20:24 -0700 (PDT) In-Reply-To: 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:294286 Archived-At: --000000000000de8a340625639ced Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I agree with your point, but since EditorConfig is meant for editor interoperability, it would be more productive to discuss this with other text editor developers on the EditorConfig mailing list than with Emacs editorconfig-mode users. I think that bundling a built-in EditorConfig in Emacs will help many Emacs users and potential Emacs beginners. I'm very grateful for your work. 2024=E5=B9=B410=E6=9C=8827=E6=97=A5(=E6=97=A5) 0:21 Stefan Monnier : > >>> You can get the same behavior with > >>> > >>> indent_size =3D tab > >>> tab_width =3D 4 > >> > >> The settings mean the same thing, > > > > Do they? If so, why prefer the above formulation? > > The weird thing about this insistence that indent_size =3D=3D tab_width a= nd > that exclusively TAB chars should be used for indentation, is that the > whole point of that style of indentation is that it looks correct > regardless of `tab-width`, making the `tab-width` into a user-preference > that does not need to be enforced in the coding convention (and thus > shouldn't be set by `.editorconfig`). > > In clear, I think the `.editorconfig` file should say just > > indent_size =3D tab > > and then every user would set tab-width to the value they like in their > favorite editor's personal settings. > > Anyway, I pushed the last patch, combined with the previous one, to > `emacs-30`, which I believe should fix the problem you reported. > > > Stefan > > --000000000000de8a340625639ced Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I agree with your point, but since EditorConfig is meant f= or editor interoperability,
it would be more productive to discuss this = with other text editor developers on
the EditorConfig mailing list than = with Emacs editorconfig-mode users.

I think that bundling a built-in= EditorConfig in Emacs will help many Emacs users
and potential Emacs be= ginners. I'm very grateful for your work.

2024=E5=B9=B410=E6=9C=8827=E6= =97=A5(=E6=97=A5) 0:21 Stefan Monnier <monnier@iro.umontreal.ca>:
>>> You can get the same behavior wit= h
>>>
>>>=C2=A0 =C2=A0 indent_size =3D tab
>>>=C2=A0 =C2=A0 tab_width =3D 4
>>
>> The settings mean the same thing,
>
> Do they?=C2=A0 If so, why prefer the above formulation?

The weird thing about this insistence that indent_size =3D=3D tab_width and=
that exclusively TAB chars should be used for indentation, is that the
whole point of that style of indentation is that it looks correct
regardless of `tab-width`, making the `tab-width` into a user-preference that does not need to be enforced in the coding convention (and thus
shouldn't be set by `.editorconfig`).

In clear, I think the `.editorconfig` file should say just

=C2=A0 =C2=A0 indent_size =3D tab

and then every user would set tab-width to the value they like in their
favorite editor's personal settings.

Anyway, I pushed the last patch, combined with the previous one, to
`emacs-30`, which I believe should fix the problem you reported.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--000000000000de8a340625639ced--