Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 26 Oct 2024 16:22:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 26 12:22:05 2024 Received: from localhost ([127.0.0.1]:42366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4jYD-0005h3-41 for submit <at> debbugs.gnu.org; Sat, 26 Oct 2024 12:22:05 -0400 Received: from mail-pj1-f51.google.com ([209.85.216.51]:56699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zonuexe@HIDDEN>) id 1t4jYB-0005gW-LN for 73991 <at> debbugs.gnu.org; Sat, 26 Oct 2024 12:22:04 -0400 Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2e2bd347124so2295001a91.1 for <73991 <at> 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) MIME-Version: 1.0 References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> <jwvldycyvg0.fsf-monnier+emacs@HIDDEN> <jwvsesisxs6.fsf-monnier+emacs@HIDDEN> In-Reply-To: <jwvsesisxs6.fsf-monnier+emacs@HIDDEN> From: Kenta USAMI <zonuexe@HIDDEN> Date: Sun, 27 Oct 2024 01:20:13 +0900 Message-ID: <CAJB2i6Y8FfiEW45+YtK2jgcK1bDtR6LwEZ2jBk_5a_AHzdhSzQ@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width To: Stefan Monnier <monnier@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000de8a340625639ced" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73991 Cc: 73991 <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: -1.0 (-) --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 <monnier= @iro.umontreal.ca>: > >>> 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 <div dir=3D"ltr">I agree with your point, but since EditorConfig is meant f= or editor interoperability,<br>it would be more productive to discuss this = with other text editor developers on<br>the EditorConfig mailing list than = with Emacs editorconfig-mode users.<br><br>I think that bundling a built-in= EditorConfig in Emacs will help many Emacs users<br>and potential Emacs be= ginners. I'm very grateful for your work.</div><br><div class=3D"gmail_= quote"><div dir=3D"ltr" class=3D"gmail_attr">2024=E5=B9=B410=E6=9C=8827=E6= =97=A5(=E6=97=A5) 0:21 Stefan Monnier <<a href=3D"mailto:monnier@HIDDEN= ntreal.ca">monnier@HIDDEN</a>>:<br></div><blockquote class=3D"= gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex">>>> You can get the same behavior wit= h<br> >>><br> >>>=C2=A0 =C2=A0 indent_size =3D tab<br> >>>=C2=A0 =C2=A0 tab_width =3D 4<br> >><br> >> The settings mean the same thing,<br> ><br> > Do they?=C2=A0 If so, why prefer the above formulation?<br> <br> The weird thing about this insistence that indent_size =3D=3D tab_width and= <br> that exclusively TAB chars should be used for indentation, is that the<br> whole point of that style of indentation is that it looks correct<br> regardless of `tab-width`, making the `tab-width` into a user-preference<br= > that does not need to be enforced in the coding convention (and thus<br> shouldn't be set by `.editorconfig`).<br> <br> In clear, I think the `.editorconfig` file should say just<br> <br> =C2=A0 =C2=A0 indent_size =3D tab<br> <br> and then every user would set tab-width to the value they like in their<br> favorite editor's personal settings.<br> <br> Anyway, I pushed the last patch, combined with the previous one, to<br> `emacs-30`, which I believe should fix the problem you reported.<br> <br> <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan<br> <br> </blockquote></div> --000000000000de8a340625639ced--
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 26 Oct 2024 15:21:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 26 11:21:44 2024 Received: from localhost ([127.0.0.1]:42296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4ibo-00034U-CR for submit <at> debbugs.gnu.org; Sat, 26 Oct 2024 11:21:44 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1t4ibk-00033z-RE for 73991 <at> debbugs.gnu.org; Sat, 26 Oct 2024 11:21:43 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5B5A48089D; Sat, 26 Oct 2024 11:21:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1729956059; bh=WfXaesBBwWVsEkWI3OWyKZCZMViX+nMtXQe8TCqWjKk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=dbCPvUdNOMXV7mvWF43L17iqDWcrLKVzfDr4vdRIb/a1/5ShjlCCjTxp4EYOQFtgh SmPJx9MPf+RlbrMxJsFob7EmukfBR6OvRiiv4/LsXdAd5oAU49rIGzrBSsoCc/dXnY aYfvUJiJTCytlwFVJHEIoiSPQM5S3hS8q2cr8f9nncezu979e7PHxPAg2fCRrfPbkY 0YxcpfV+B68nG9rlNafe9FmHcv6qf8LZXoFoB/HpyLoCi5fC/1HXwFKerfDcaS66Ci U6aBbDBpFAoWWiwzuw/dWHFL1g3yYl8OuZkxp4X13TcApobMNoi5I2uy71joaTz3ZK VI4n/AmcAdiYg== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B816D80299; Sat, 26 Oct 2024 11:20:59 -0400 (EDT) Received: from pastel (69-196-161-60.dsl.teksavvy.com [69.196.161.60]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8E01112037A; Sat, 26 Oct 2024 11:20:59 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Kenta USAMI <zonuexe@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width In-Reply-To: <jwvldycyvg0.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message of "Fri, 25 Oct 2024 13:25:23 -0400") Message-ID: <jwvsesisxs6.fsf-monnier+emacs@HIDDEN> References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> <jwvldycyvg0.fsf-monnier+emacs@HIDDEN> Date: Sat, 26 Oct 2024 11:20:58 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.050 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: 73991 <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: -3.3 (---) >>> You can get the same behavior with >>> >>> indent_size = tab >>> tab_width = 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 == 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 indent_size = 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
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 17:27:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 13:27:53 2024 Received: from localhost ([127.0.0.1]:39379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4O6G-0007OD-99 for submit <at> debbugs.gnu.org; Fri, 25 Oct 2024 13:27:53 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1t4O6E-0007Nw-Os for 73991 <at> debbugs.gnu.org; Fri, 25 Oct 2024 13:27:47 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0AFE1100180; Fri, 25 Oct 2024 13:27:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1729877228; bh=rsJc1Q66cgtsRfK5JhOfEGg9sz6/6su2vwCme0xcHwc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GVPhBdutKOsmoiNmuksYl8IV/uHdYzfzqQ0QX1HnNoc0Ggs7TJE0od3KkqqPlt9Dz xVzIFemUuCNnRxocecoskJ6YHgGpqmc5X4+ckdbp20SMI3N/lIJAar/RtRfRfXoIbA qdx1EFl2ZfQ0HaF/4PEW4UukSu3McUfIshzWoJk0jJltTBdX/Ly2SawRXxohfTD5dn b2lpYH/8Aybl65Hl/pfd1237Z0XAsqJEDQZgSYZ3ndJ/D3zzj+sNhhgW0IhyXDnPki YUCFIhbzaunlxa/dMhs+9fMR1RGadUOPVwjWPwuEtz3lyR/usUzQ2GO2X4u1XqGNmK UMp+JvPcOx+Qg== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 632A6100043; Fri, 25 Oct 2024 13:27:08 -0400 (EDT) Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 447CC120F5C; Fri, 25 Oct 2024 13:27:08 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Kenta USAMI <zonuexe@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width In-Reply-To: <CAJB2i6a5Ot0QmgeB_SixoAtOLCAp2Tzb_Se6970knEYdEc89Eg@HIDDEN> (Kenta USAMI's message of "Fri, 25 Oct 2024 18:07:32 +0900") Message-ID: <jwvfrokytzk.fsf-monnier+emacs@HIDDEN> References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> <861q04d44q.fsf@HIDDEN> <CAJB2i6a5Ot0QmgeB_SixoAtOLCAp2Tzb_Se6970knEYdEc89Eg@HIDDEN> Date: Fri, 25 Oct 2024 13:27:07 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.017 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: Eli Zaretskii <eliz@HIDDEN>, 73991 <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: -3.3 (---) > However, the difference in these settings is as trivial as the color > of a bike shed to other editor implementations that comply with the > EditorConfig specification. Which begs the question: why have those three variables if many/most of the combinations mean the same anyway. Stefan
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 17:26:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 13:26:13 2024 Received: from localhost ([127.0.0.1]:39374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4O4i-0007Ld-LM for submit <at> debbugs.gnu.org; Fri, 25 Oct 2024 13:26:13 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1t4O4g-0007LR-5s for 73991 <at> debbugs.gnu.org; Fri, 25 Oct 2024 13:26:11 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0F9DB440A0D; Fri, 25 Oct 2024 13:25:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1729877125; bh=tXPMNtlVeGUj8lxTXY272rzedNxOmv32tPtXP+bhKBY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ew4uQVj1rHDibsulNUK3Q9kcELigxDZSD65oEc+WLZ84wVUABGrBTiqX6XZFUPnVU 1EBYqfbpsCRJZePherEaFEn1wdEg/d0yIrhCcC79Yv27lIUbmNe5TVka63dqyt3ZU9 qyUHLQoA657I9JrpoZLC+7PMgd/k/bOS/gUcbaGVd8bKNAosgfGHeyvZg06rcmPCP3 7UCUnYRw49u7YPjsdsvzqWSFzpuNkwlmupIhgMJtH5ESuR8D28vk0LFx3oZZs5LB0T aijAQTj0sbxuCHzb5kc5nh0liJNlCqGFfkeCONNJaa1dKsrovwzL8h0tXmXRKAyPUm DoU7EqJh86QDg== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B72304409F1; Fri, 25 Oct 2024 13:25:25 -0400 (EDT) Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9983A120D41; Fri, 25 Oct 2024 13:25:25 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Kenta USAMI <zonuexe@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width In-Reply-To: <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> (Kenta USAMI's message of "Fri, 25 Oct 2024 12:44:31 +0900") Message-ID: <jwvldycyvg0.fsf-monnier+emacs@HIDDEN> References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> Date: Fri, 25 Oct 2024 13:25:23 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.088 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: 73991 <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: -3.3 (---) >> You can get the same behavior with >> >> indent_size = tab >> tab_width = 4 > > The settings mean the same thing, Do they? If so, why prefer the above formulation? Also they don't seem to mean quite the same thing to me. The way I read it, the above really says that an indent step should be a TAB since that's what the first line says quite literally, whereas: indent_size = 4 indent_style = tab only says that an indentation step should span 4 columns, and that the spacing inserted when indenting use TAB chars rather than spaces to move from a the `N1 * tab_width` column to the `N2 * tab_width` column. I think the two interpretations can only be mistaken as equivalent if you ignore situations like x.bar(arg1, somefunctionwithalongname (arg2)) where you can't align `somefunction` with TABs of width 4 (or 8 for that matter), nor can you then properly indent `(arg2)` 4 columns further with only TABs. [ Admittedly, the spec of EditorConfig around `tab_width`, `indent_size`, and `indent_style` is quite vague and hard to interpret. OT1H it tends to conflate several notions of "TAB" and "indentation steps" (like you're doing when you claim that both settings mean the same), yet OTOH it goes through the trouble of providing 3 different variables, thus recognizing that there is more to it. ] This said, I guess we could meet halfway and set `tab-width` to `indent_size` when `indent_style = tab`, as in the patch below. Stefan diff --git a/lisp/editorconfig.el b/lisp/editorconfig.el index c21e12559a6..83e4ea36731 100644 --- a/lisp/editorconfig.el +++ b/lisp/editorconfig.el @@ -434,8 +434,10 @@ editorconfig--get-indentation (let ((style (gethash 'indent_style props)) (size (gethash 'indent_size props)) (tab_width (gethash 'tab_width props))) - (when tab_width - (setq tab_width (string-to-number tab_width))) + (cond + (tab_width (setq tab_width (string-to-number tab_width))) + ((and (equal style "tab") (editorconfig-string-integer-p size)) + (setq tab_width (string-to-number size)))) (setq size (cond ((editorconfig-string-integer-p size)
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 10:50:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 06:50:58 2024 Received: from localhost ([127.0.0.1]:37523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4HuE-0005O0-GJ for submit <at> debbugs.gnu.org; Fri, 25 Oct 2024 06:50:58 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:49437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zonuexe@HIDDEN>) id 1t4HuC-0005Ng-7e for 73991 <at> debbugs.gnu.org; Fri, 25 Oct 2024 06:50:56 -0400 Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-20cdda5cfb6so16551825ad.3 for <73991 <at> debbugs.gnu.org>; Fri, 25 Oct 2024 03:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zonu-me.20230601.gappssmtp.com; s=20230601; t=1729853357; x=1730458157; 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=wps41tODTCaiAv/k78D0ialXSOFB8xD9oaArwJcFQEM=; b=q7n+WLGxtOc3bIj6wCLHiTE5E90eNteqb9Kjy0b6BYuR0LxHrtKjGvIDcPHwyls1KS Fapblz/dDKl47PgiC2Bmcrc+Z0X9OQGs0P8GnGP1PBN8A9Vhk0aj2zeuzTrE+FauxvbH FSpwIswDtu90MAUOyX7mcq6DaHTgSOz2giwRK7ObudvPmwzWzk20uiGl3WO5usGHBuxu cVdsX+wFVL+6KgrtP87HBivobumI0s2rYak86ouP4yNOZYdBTIKUPjw9dvJPOKOf9E2D wCPZDGZlabYH5CMGocxYjkw22/4ci07z8FA1KUVJ1M4MtUe0xRK1VwR2nQ5OBwltcm/0 dVVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729853357; x=1730458157; 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=wps41tODTCaiAv/k78D0ialXSOFB8xD9oaArwJcFQEM=; b=jqkyJqCObld9BBnxObryj+9pdAsFerytdAdhirFF+mLBDvX8peV9o97QitpYAaS34u J1UbJR9JrtZfbG4nUstU+3Qr0AjAWTh2tUczrCKZk+g0FyTy1s9u5w3+7qu7oqSEsSCh 1P5e7syGgKVGdeq4MWAhqTeoeFWcPQ7/zm4yGcfZMOfFDyOvs28o3wXJMxIJ0Eed9uqU 7VaE1spRgNPnLyjSU/er068y4aaeXdSBEBPpcdOxfiDQGHHkd+Fo0LDHD3BHawx+9Cxk jTlg1Q5B0D4oD+Z64LjIR0k4FVrDr/idKmZXy48ma29xXYh58y7NI9PYUBwHuIOTpLMv Hcvg== X-Forwarded-Encrypted: i=1; AJvYcCWmbruCV1NemlpOPNk25AtfrdpjHyPkgaY4hvrJEpQED1RsUXLwIbFzJDZIv3c9Wsdbhn9hlw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxgLIMu01XjSIDllWv+7YjcTqAeYTuuNY+3UkBTMVhfOb8veUYe 1EQrPSQcojvHSHIBZLiiwAm3oIFMz7g8jliYnjMwie7nmyWtWyxJVQyGewX0NrNdRIddPjX5U0/ eNGACTLkwVkUwxjCLSD1P3ye5ybpKkdlm6GDIoQ== X-Google-Smtp-Source: AGHT+IGoqQ/NMt/MmF35qENBs/v/GZcCKB3Yj4ciUMv5hkTLu3f3q7Hd06MBXoJX86JOVSpTvN60c4ulHW8devlf2vA= X-Received: by 2002:a17:90b:8c7:b0:2e2:ca4d:9164 with SMTP id 98e67ed59e1d1-2e76b5ddd4amr9204138a91.12.1729853357415; Fri, 25 Oct 2024 03:49:17 -0700 (PDT) MIME-Version: 1.0 References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> <861q04d44q.fsf@HIDDEN> <CAJB2i6a5Ot0QmgeB_SixoAtOLCAp2Tzb_Se6970knEYdEc89Eg@HIDDEN> <86v7xgbi5c.fsf@HIDDEN> In-Reply-To: <86v7xgbi5c.fsf@HIDDEN> From: Kenta USAMI <zonuexe@HIDDEN> Date: Fri, 25 Oct 2024 19:49:06 +0900 Message-ID: <CAJB2i6aL7nfKA-Kiunm9QfHp0Jv25594gShpvujPr-VxzSQ+hQ@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000e20b9706254ade65" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73991 Cc: monnier@HIDDEN, 73991 <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: -1.0 (-) --000000000000e20b9706254ade65 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The effort to change EditorConfig settings for each project is too small-scale compared to other meaningful discussions, such as the need to guarantee computing freedom. Forcing users who have used Emacs and EditorConfig and found them useful to accept this inconvenient change when they update to Emacs 30 seems like nothing more than a negative campaign against Emacs, and an effort to exclude casual Emacs users. I have no other feedback on these efforts, but I am very grateful for your work. Regards, 2024=E5=B9=B410=E6=9C=8825=E6=97=A5(=E9=87=91) 19:18 Eli Zaretskii <eliz@gn= u.org>: > > From: Kenta USAMI <zonuexe@HIDDEN> > > Date: Fri, 25 Oct 2024 18:07:32 +0900 > > Cc: monnier@HIDDEN, 73991 <at> debbugs.gnu.org > > > > Thank you for your suggestion. > > > > However, the difference in these settings is as trivial as the color of > a bike > > shed to other editor implementations that comply with the EditorConfig > specification. > > > > I don't intend to send patches to numerous free software authors to fix > something > > that isn't broken. Frankly, it would feel like spam to people who don't > use Emacs. > > It would feel like spam only if you accept that POV. If you agree > with the POV I presented -- that the fact Emacs now supports > EditorConfig is worth some effort to adapt -- and try convincing > others to accept that, it won't look like spam, I'm sure. > --000000000000e20b9706254ade65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">The effort to change EditorConfig settings for each projec= t is too small-scale<br>compared to other meaningful discussions, such as t= he need to guarantee<br>computing freedom. Forcing users who have used Emac= s and EditorConfig and found<br>them useful to accept this inconvenient cha= nge when they update to Emacs 30<br>seems like nothing more than a negative= campaign against Emacs, and an effort<br>to exclude casual Emacs users.<br= ><br>I have no other feedback on these efforts, but I am very grateful for = your work.<br><div><br></div><div>Regards,</div></div><br><div class=3D"gma= il_quote"><div dir=3D"ltr" class=3D"gmail_attr">2024=E5=B9=B410=E6=9C=8825= =E6=97=A5(=E9=87=91) 19:18 Eli Zaretskii <<a href=3D"mailto:eliz@HIDDEN= ">eliz@HIDDEN</a>>:<br></div><blockquote class=3D"gmail_quote" style=3D= "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex">> From: Kenta USAMI <<a href=3D"mailto:zonuexe@HIDDEN" targe= t=3D"_blank">zonuexe@HIDDEN</a>><br> > Date: Fri, 25 Oct 2024 18:07:32 +0900<br> > Cc: <a href=3D"mailto:monnier@HIDDEN" target=3D"_blank">monn= ier@HIDDEN</a>, <a href=3D"mailto:73991 <at> debbugs.gnu.org" target= =3D"_blank">73991 <at> debbugs.gnu.org</a><br> > <br> > Thank you for your suggestion.<br> > <br> > However, the difference in these settings is as trivial as the color o= f a bike<br> > shed to other editor implementations that comply with the EditorConfig= specification.<br> > <br> > I don't intend to send patches to numerous free software authors t= o fix something<br> > that isn't broken. Frankly, it would feel like spam to people who = don't use Emacs.<br> <br> It would feel like spam only if you accept that POV.=C2=A0 If you agree<br> with the POV I presented -- that the fact Emacs now supports<br> EditorConfig is worth some effort to adapt -- and try convincing<br> others to accept that, it won't look like spam, I'm sure.<br> </blockquote></div> --000000000000e20b9706254ade65--
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 10:19:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 06:19:15 2024 Received: from localhost ([127.0.0.1]:37422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4HPX-0003lo-Ig for submit <at> debbugs.gnu.org; Fri, 25 Oct 2024 06:19:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1t4HPV-0003la-TX for 73991 <at> debbugs.gnu.org; Fri, 25 Oct 2024 06:19:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1t4HOt-0008Oa-Fk; Fri, 25 Oct 2024 06:18:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NIuBVVJAVe/v1JqGA25M75YZi6bZGxEx+4rnNNJWxYk=; b=K6RrkdzWcucG mnxI6f9xyUViIv9aznmogE++CsMNFMGmxb1XB1i7zJ7OipVu1FXAsI2iUq0yC/Q8XqFTr5p0S7VqX HT47ZQhBb4AoF2JG/yKTbauOwypsZI+nvFEnxjILLFII+rz52hI07fZ0004jVwjQ9uB9ey9wTnwJu V2nKDDy6NFQaLZ6kZHmVqcs6Xo8PjWxV5hzlhHRqlOZfpJPuI0NrX7jBougrJXjSyDGS9567B5eG3 P991If1HnbIJe6PvzOurcL+QIBeFDP61ZTUhEGYrAXX+9a0TanbNGLNVDVKkiImXe5DMZbH0DwemW GNsFzfLBA6MwP96nMZDBLg==; Date: Fri, 25 Oct 2024 13:18:07 +0300 Message-Id: <86v7xgbi5c.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Kenta USAMI <zonuexe@HIDDEN> In-Reply-To: <CAJB2i6a5Ot0QmgeB_SixoAtOLCAp2Tzb_Se6970knEYdEc89Eg@HIDDEN> (message from Kenta USAMI on Fri, 25 Oct 2024 18:07:32 +0900) Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> <861q04d44q.fsf@HIDDEN> <CAJB2i6a5Ot0QmgeB_SixoAtOLCAp2Tzb_Se6970knEYdEc89Eg@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: monnier@HIDDEN, 73991 <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: -3.3 (---) > From: Kenta USAMI <zonuexe@HIDDEN> > Date: Fri, 25 Oct 2024 18:07:32 +0900 > Cc: monnier@HIDDEN, 73991 <at> debbugs.gnu.org > > Thank you for your suggestion. > > However, the difference in these settings is as trivial as the color of a bike > shed to other editor implementations that comply with the EditorConfig specification. > > I don't intend to send patches to numerous free software authors to fix something > that isn't broken. Frankly, it would feel like spam to people who don't use Emacs. It would feel like spam only if you accept that POV. If you agree with the POV I presented -- that the fact Emacs now supports EditorConfig is worth some effort to adapt -- and try convincing others to accept that, it won't look like spam, I'm sure.
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 09:09:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 05:09:21 2024 Received: from localhost ([127.0.0.1]:37223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4GJt-0000Sh-Cx for submit <at> debbugs.gnu.org; Fri, 25 Oct 2024 05:09:21 -0400 Received: from mail-pf1-f177.google.com ([209.85.210.177]:58511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zonuexe@HIDDEN>) id 1t4GJo-0000SR-J8 for 73991 <at> debbugs.gnu.org; Fri, 25 Oct 2024 05:09:19 -0400 Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71e6cec7227so1427767b3a.0 for <73991 <at> debbugs.gnu.org>; Fri, 25 Oct 2024 02:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zonu-me.20230601.gappssmtp.com; s=20230601; t=1729847264; x=1730452064; 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=UvcsYyJHwQ90A4QbRkqGwcLQTz1RsulWSrsz/C5HGjQ=; b=W/cE2tSbB+9rArROIstk6TqT2Abw4j6JPnGFrya36tD+LhSSIUnzmJPmLp62sX8wHl dY3J5eulfk1/gfUZcGCrqzeavBAEKBXPfrTm4yzZkAEaYigP2aELR/p+zRZpQSgvTbDt qwmeeOvkVo8myGs2TBv0wTKZWOCVxU5pevr4gEeIWspgvhsbpEaw9p5KoqX8ZTztTi/b rJxXCaL1kjoXOvuvSu5u4O9CwceuoFgYAelkxOVRRbTuEp0Sxj407SL6dWjs9BAc9sgN qH7MlMMxKtYbQ4zA26bvet5ZGfhdi+EEbNT01NobNMrAZ/gjQoLkrBToWeRKr9REkxgj UtkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729847264; x=1730452064; 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=UvcsYyJHwQ90A4QbRkqGwcLQTz1RsulWSrsz/C5HGjQ=; b=osa9i/OfJumrqysOvFvP0IW9CgdCg0Pp8AxQTO4SHFDgbSjaz/obA41LcV2RniKU/O ZP5Y2mBxCWk57Z2c2ecuhKKCq6nAGnOKJomhwbsbIdEKNHiAjgSuA13x6DOq9CzTQL9s RFFeTUdrCqCWvrAQ6pWYXHA3QAPDA1uNCbqqB1Y2YuWEpMZJ4OW/idd0E3bN1gtonPgf uD1+3fw+F7uLEb5OG1pn5+ByxL4ITTUvAKUUs0c4uos4rEkYBXfmfFXb174hEBMURrzZ eI8sLnhL9TAtW9lSlJmdRafbRZMrdmwVmHTtmAPrku+RvIsJOcOqNoTYB5+nO+5o98ED bywQ== X-Forwarded-Encrypted: i=1; AJvYcCW5Uj3U6ecEqTczvXtt09klygza/N08sF5ja0KGYYxssXzYPf/uxMz0O1nb0E0adzzeuK1EPA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yxs9eno27BLpgwMXQsYxWazQt7WZ+iVea9Oojw+i1Fg38ZIc7Ou 63em2WAPBPaGNKaaMONQxhiJ9d5oD4HqwBocGT7GpfmLyUzAn0tYpj8oGX06sqbwtwbvDRIlBTc 3DcRLvn2aDol2mURNDlttmj/YfyOxxq7rvULpPw== X-Google-Smtp-Source: AGHT+IExsU/O2/M/Mx2/kKVO0SprDNzSAoObtG0zYF3z4O5n856y95eohvJmL0SecVIydT/SzknS4OfsLg3/nB5MF5w= X-Received: by 2002:a05:6a00:190b:b0:71e:2a0:b0d0 with SMTP id d2e1a72fcca58-72045e75cbfmr6890617b3a.13.1729847263666; Fri, 25 Oct 2024 02:07:43 -0700 (PDT) MIME-Version: 1.0 References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> <861q04d44q.fsf@HIDDEN> In-Reply-To: <861q04d44q.fsf@HIDDEN> From: Kenta USAMI <zonuexe@HIDDEN> Date: Fri, 25 Oct 2024 18:07:32 +0900 Message-ID: <CAJB2i6a5Ot0QmgeB_SixoAtOLCAp2Tzb_Se6970knEYdEc89Eg@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000aac1310625497376" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73991 Cc: monnier@HIDDEN, 73991 <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: -1.0 (-) --000000000000aac1310625497376 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for your suggestion. However, the difference in these settings is as trivial as the color of a bike shed to other editor implementations that comply with the EditorConfig specification. I don't intend to send patches to numerous free software authors to fix something that isn't broken. Frankly, it would feel like spam to people who don't use Emacs. 2024=E5=B9=B410=E6=9C=8825=E6=97=A5(=E9=87=91) 16:38 Eli Zaretskii <eliz@gn= u.org>: > > Cc: 73991 <at> debbugs.gnu.org > > From: Kenta USAMI <zonuexe@HIDDEN> > > Date: Fri, 25 Oct 2024 12:44:31 +0900 > > > > > You can get the same behavior with > > > > > > indent_size =3D tab > > > tab_width =3D 4 > > > > The settings mean the same thing, but I contribute to several projects > on GitHub, so it wouldn't make sense to > > rewrite them all. > > Why not? Emacs is a major new player on this playground, so making > some minor changes for the benefit of using EditorConfig settings in > Emacs sounds justified to me. > > Emacs uses tab-width in a special way, which is why we feel blindly > abiding by this setting in Emacs would be incorrect. If a way exists > to have both Emacs and the other editors happy, why not take it to > adapt? > --000000000000aac1310625497376 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thank you for your suggestion.<br><br>However, the differe= nce in these settings is as trivial as the color of a bike<br>shed to other= editor implementations that comply with the EditorConfig specification.<br= ><br>I don't intend to send patches to numerous free software authors t= o fix something<br>that isn't broken. Frankly, it would feel like spam = to people who don't use Emacs.</div><br><div class=3D"gmail_quote"><div= dir=3D"ltr" class=3D"gmail_attr">2024=E5=B9=B410=E6=9C=8825=E6=97=A5(=E9= =87=91) 16:38 Eli Zaretskii <<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN= g</a>>:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> = Cc: <a href=3D"mailto:73991 <at> debbugs.gnu.org" target=3D"_blank">73991@debbug= s.gnu.org</a><br> > From: Kenta USAMI <<a href=3D"mailto:zonuexe@HIDDEN" target=3D"_bl= ank">zonuexe@HIDDEN</a>><br> > Date: Fri, 25 Oct 2024 12:44:31 +0900<br> > <br> > > You can get the same behavior with<br> > ><br> > >=C2=A0 =C2=A0 indent_size =3D tab<br> > >=C2=A0 =C2=A0 tab_width =3D 4<br> > <br> > The settings mean the same thing, but I contribute to several projects= on GitHub, so it wouldn't make sense to<br> > rewrite them all.<br> <br> Why not?=C2=A0 Emacs is a major new player on this playground, so making<br= > some minor changes for the benefit of using EditorConfig settings in<br> Emacs sounds justified to me.<br> <br> Emacs uses tab-width in a special way, which is why we feel blindly<br> abiding by this setting in Emacs would be incorrect.=C2=A0 If a way exists<= br> to have both Emacs and the other editors happy, why not take it to<br> adapt?<br> </blockquote></div> --000000000000aac1310625497376--
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 07:38:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 03:38:40 2024 Received: from localhost ([127.0.0.1]:37113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4Eu8-0004iX-60 for submit <at> debbugs.gnu.org; Fri, 25 Oct 2024 03:38:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1t4Eu6-0004iI-G0 for 73991 <at> debbugs.gnu.org; Fri, 25 Oct 2024 03:38:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1t4EtT-0005S7-Sa; Fri, 25 Oct 2024 03:37:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PR26CZG6aJSlpKp3zk4B2IRxe9ZaxWOFoBbDjY0xEGw=; b=C56jFFIuBob8 Z/WxI3m6q++HnG+ZDeme7Gxr07lusIjpyzPZB39yZE6OTiAPgEvunq47lXAe8Gqkn1r94tZy45JTV ZpLVlAEtToFf79LpfG2rQ67LPuc/3DMtHGZMcc6fVOw7wlt1Kk9t+LCsiUHHyHSyN3OxPGSegZiss U6T4qszfd0tmwuTQNuOoMcBJ/stDaRvW6d17/2XZl3adUulk/a4hGVQqf7zVc76Nog5TA+oNrD3tb NP7YSbbWEbHhpnfGk5wg6Sz+XrxQMROoc1aytrTXCfov9AXNJWyVKK9c1+FhEYDzLVlTuoC+6+jjx z+ysrvAVYHjaZD0hvnX//Q==; Date: Fri, 25 Oct 2024 10:37:57 +0300 Message-Id: <861q04d44q.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Kenta USAMI <zonuexe@HIDDEN> In-Reply-To: <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> (message from Kenta USAMI on Fri, 25 Oct 2024 12:44:31 +0900) Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: monnier@HIDDEN, 73991 <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: -3.3 (---) > Cc: 73991 <at> debbugs.gnu.org > From: Kenta USAMI <zonuexe@HIDDEN> > Date: Fri, 25 Oct 2024 12:44:31 +0900 > > > You can get the same behavior with > > > > indent_size = tab > > tab_width = 4 > > The settings mean the same thing, but I contribute to several projects on GitHub, so it wouldn't make sense to > rewrite them all. Why not? Emacs is a major new player on this playground, so making some minor changes for the benefit of using EditorConfig settings in Emacs sounds justified to me. Emacs uses tab-width in a special way, which is why we feel blindly abiding by this setting in Emacs would be incorrect. If a way exists to have both Emacs and the other editors happy, why not take it to adapt?
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 06:21:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 02:21:42 2024 Received: from localhost ([127.0.0.1]:36990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4Dhe-00016J-Kt for submit <at> debbugs.gnu.org; Fri, 25 Oct 2024 02:21:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1t4Dhb-000163-QJ for 73991 <at> debbugs.gnu.org; Fri, 25 Oct 2024 02:21:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1t4Det-0005j4-Pb; Fri, 25 Oct 2024 02:18:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uvLbiTNOhjIa2dPNTAi0mzkul/zxDCBFRYXjedVhU3c=; b=OmijaXKz9Vjw z1SsvYkzkoKtgyUUfrFwtX9xwxiIlgQwuMw/Jzy9VHcIXryIiboOv8DSgCg1te4aoykn6koBjnf5+ q3+m2hkjEVsCYnpjZEo0/LaFc/4dCRqYnswnTpjLwhjQ1PIOU+XPFgaLfX7AbrC1lKg9YGEPbL3Jk 1/yarZfoRBYmSvGEk3PCmc3TZiIBVHW+BJa9OfO5AXGtdxLuobbzdl17tOUe6KVriAxd31vfqHYLQ 0N1hwIQ2SfiergHnlDd4CVPN/3LLEOd/iSf11iDGutj4zLN4SmCPtDNQ9Gp1OS/9P4dQS2+6vGwLU Itnu1xxinfcqyFkxwVi/hA==; Date: Fri, 25 Oct 2024 09:18:44 +0300 Message-Id: <868qucd7sr.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Stefan Monnier <monnier@HIDDEN> In-Reply-To: <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: 73991 <at> debbugs.gnu.org, zonuexe@HIDDEN 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: -3.3 (---) > Cc: 73991 <at> debbugs.gnu.org > Date: Thu, 24 Oct 2024 15:56:51 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > BTW, I think the patch below is in order: if the user sets > "indent_size=tab", which means that the "indentation step" should be > equal to `tab-width`, then we should default `indent-tabs-mode` to > t (which in EditorConfig parlance means to default `indent_style` to > `tab`). > > Can I push this to `emacs-30` or do you, dear maintainers, prefer that > I push it to `master`? Please install on emacs-30, and thanks.
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 25 Oct 2024 03:46:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 24 23:46:23 2024 Received: from localhost ([127.0.0.1]:36783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t4BHL-00028C-6Q for submit <at> debbugs.gnu.org; Thu, 24 Oct 2024 23:46:23 -0400 Received: from mail-pf1-f177.google.com ([209.85.210.177]:45141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zonuexe@HIDDEN>) id 1t4BHH-00027v-Qn for 73991 <at> debbugs.gnu.org; Thu, 24 Oct 2024 23:46:20 -0400 Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71e49ef3b2bso1138923b3a.2 for <73991 <at> debbugs.gnu.org>; Thu, 24 Oct 2024 20:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zonu-me.20230601.gappssmtp.com; s=20230601; t=1729827882; x=1730432682; 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=nMeiEzOX5oZNYUkNmL6AvYe5x/trCgUY5BDQIk2tnHg=; b=UrstZ6WOlQ0uB8kgait1LbTnUJLHE6vqGSqsLOtl8e12e91yKtNlwDzCEvmis970pE IQEmti+wfQ7rFkJWtIXMRXybRgTmcp7z3NTj8u7FGBpuAcFbUARS5X/jm1Mdexm64TcL qWPtKTqrrwN8F6ypfzEouRKo2w2Lx0GidTSOV+CaLnJF/XhYEvfT1XBc6PlBFeRipvcz OoUXPVU3jSd/Uj/d12dbDcJU2YBl1btxYIevARcV9kFHWEhXa7nC32tHR0IGDRJij5sG ghpI2O79cJpQxaRgIVBuVUYNkrZQ0wDH70KY53/bODSJiyYz23J0PP3JBd3xz0HawiFC N4lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729827882; x=1730432682; 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=nMeiEzOX5oZNYUkNmL6AvYe5x/trCgUY5BDQIk2tnHg=; b=l4D8oSoFNb0KwGjYEsQhJhh4fEKk08dUF7NXlkzHxXuKe7yKLDLo+i0vIplbETqpJa A08tOGfXyTpQes0jmUPG+zr+cKpiEshjLND7qT40XfNTVGuH89dupZDXLusa5tYTZJhq 4/YfhHs3kK5pseP1DeiMJ1Lgq/ray8jdEzpqQihfCDUT3mlEk0oujUI8Bs3ebnMoeZTz rRaPHlw5tN3Z6PZpI0YUl4ZcUPo9ZBPv0G7GOTnSUIJAUwdTIZJNhnNFin5OhTCT3gEl QdjtIzxTYSYxggycXkdwOTpY41VJVfdFP/2ldSnGhIlIFBgafwudK23AHKRalMoexUnF 6OBA== X-Gm-Message-State: AOJu0Yx/zPmsKx2415O4uPUdJu+4vniGab8pvaCNPWLsCddvhe0IZpKK kbajZD4PVNpwAFnKDDo0m0PkNOExIOioWC1m49V+QL4IfobWDYwug7mlAxF9IW12m89EthglyNP /2krR5RK7kakfM9lvzrdOdi80cFpIrzLSg3L/Ug== X-Google-Smtp-Source: AGHT+IEiHCoq2grZjOX87fNo0z8Oc4HJvUKVXGgmUUHuEMoBUu209DaoQIuVuXgc2QlnQ68kHGCc07o4F0VmCugIusQ= X-Received: by 2002:a05:6a00:2d02:b0:720:2eda:dfd1 with SMTP id d2e1a72fcca58-72030b67281mr11236607b3a.18.1729827882168; Thu, 24 Oct 2024 20:44:42 -0700 (PDT) MIME-Version: 1.0 References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> In-Reply-To: <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> From: Kenta USAMI <zonuexe@HIDDEN> Date: Fri, 25 Oct 2024 12:44:31 +0900 Message-ID: <CAJB2i6bbh6YJNSPyoOTxPrV1DWNDF-j4bnhPuPznAgMQK41_gg@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width To: Stefan Monnier <monnier@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000070b96d062544f06c" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73991 Cc: 73991 <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: -1.0 (-) --00000000000070b96d062544f06c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Stefan, > You can get the same behavior with > > indent_size =3D tab > tab_width =3D 4 The settings mean the same thing, but I contribute to several projects on GitHub, so it wouldn't make sense to rewrite them all. I accidentally replied to Eli about bug#72808 instead of to ML, so I'm resending it. ----- I read bug #72808 and I don't quite understand what you and Stefan are saying. > > Yes, I consciously disagreed with the standard here. IMO, this better > > reflects Emacs's habitual behavior, so it makes more sense for Emacs users. My feedback is as follows: Without tab-width being honored, editing code in a project based on this setting would easily cause Emacs to break the indentation of that file. I've been an editorconfig-mode user since 2014 and I don't think the behavior is reasonable. If that were the default behavior I could correct it with advice, but forcing that on a large number of users would be terrible. At the very least, I wish they would document it and make tab_width an opt-in option via a customization variable. 2024=E5=B9=B410=E6=9C=8825=E6=97=A5(=E9=87=91) 4:56 Stefan Monnier <monnier= @iro.umontreal.ca>: > > In Emacs 30.0.91, the debugger does not respond when watching the > variable. > > You can get the same behavior with > > indent_size =3D tab > tab_width =3D 4 > > BTW, I think the patch below is in order: if the user sets > "indent_size=3Dtab", which means that the "indentation step" should be > equal to `tab-width`, then we should default `indent-tabs-mode` to > t (which in EditorConfig parlance means to default `indent_style` to > `tab`). > > Can I push this to `emacs-30` or do you, dear maintainers, prefer that > I push it to `master`? > > > Stefan > > > diff --git a/lisp/editorconfig.el b/lisp/editorconfig.el > index c21e12559a6..478d94a2dc1 100644 > --- a/lisp/editorconfig.el > +++ b/lisp/editorconfig.el > @@ -437,6 +437,11 @@ editorconfig--get-indentation > (when tab_width > (setq tab_width (string-to-number tab_width))) > > + ;; When users choose `indent_size=3Dtab', they most likely prefer > + ;; `indent_style=3Dtab' as well. > + (when (and (null style) (equal size "tab")) > + (setq style "tab")) > + > (setq size > (cond ((editorconfig-string-integer-p size) > (string-to-number size)) > > --00000000000070b96d062544f06c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Stefan,<div><br></div><div>> You can get the same be= havior with</div>><br>>=C2=A0 =C2=A0 indent_size =3D tab<br>>=C2= =A0 =C2=A0 tab_width =3D 4<div><br></div><div>The settings mean the same th= ing, but I contribute to several projects on GitHub, so it wouldn't mak= e sense to rewrite them all.</div><div><br></div><div>I accidentally replie= d to Eli about bug#72808 instead of to ML, so I'm resending it.</div><d= iv><br></div><div>-----</div><div><br></div><div>I read bug #72808 and I do= n't quite understand what you and Stefan are saying.<br><br>> > Y= es, I consciously disagreed with the standard here.=C2=A0 IMO, this better<= br>> > reflects Emacs's habitual behavior, so it makes more sense= for Emacs users.<br>My feedback is as follows:<br><br>Without tab-width be= ing honored, editing code in a project based on this setting would easily c= ause Emacs to break the indentation of that file.<br>I've been an edito= rconfig-mode user since 2014 and I don't think the behavior is reasonab= le.<br>If that were the default behavior I could correct it with advice, bu= t forcing that on a large number of users would be terrible.<br>At the very= least, I wish they would document it and make tab_width an opt-in option v= ia a customization variable.</div><div><br></div><div><br></div></div><br><= div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">2024=E5=B9= =B410=E6=9C=8825=E6=97=A5(=E9=87=91) 4:56 Stefan Monnier <<a href=3D"mai= lto:monnier@HIDDEN">monnier@HIDDEN</a>>:<br></div><b= lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le= ft:1px solid rgb(204,204,204);padding-left:1ex">> In Emacs 30.0.91, the = debugger does not respond when watching the variable.<br> <br> You can get the same behavior with<br> <br> =C2=A0 =C2=A0 indent_size =3D tab<br> =C2=A0 =C2=A0 tab_width =3D 4<br> <br> BTW, I think the patch below is in order: if the user sets<br> "indent_size=3Dtab", which means that the "indentation step&= quot; should be<br> equal to `tab-width`, then we should default `indent-tabs-mode` to<br> t (which in EditorConfig parlance means to default `indent_style` to<br> `tab`).<br> <br> Can I push this to `emacs-30` or do you, dear maintainers, prefer that<br> I push it to `master`?<br> <br> <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan<br> <br> <br> diff --git a/lisp/editorconfig.el b/lisp/editorconfig.el<br> index c21e12559a6..478d94a2dc1 100644<br> --- a/lisp/editorconfig.el<br> +++ b/lisp/editorconfig.el<br> @@ -437,6 +437,11 @@ editorconfig--get-indentation<br> =C2=A0 =C2=A0 =C2=A0(when tab_width<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq tab_width (string-to-number tab_width)))<b= r> <br> +=C2=A0 =C2=A0 ;; When users choose `indent_size=3Dtab', they most like= ly prefer<br> +=C2=A0 =C2=A0 ;; `indent_style=3Dtab' as well.<br> +=C2=A0 =C2=A0 (when (and (null style) (equal size "tab"))<br> +=C2=A0 =C2=A0 =C2=A0 (setq style "tab"))<br> +<br> =C2=A0 =C2=A0 =C2=A0(setq size<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(cond ((editorconfig-string-intege= r-p size)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (string-to-n= umber size))<br> <br> </blockquote></div> --00000000000070b96d062544f06c--
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 24 Oct 2024 19:57:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 24 15:57:33 2024 Received: from localhost ([127.0.0.1]:36261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t43xd-0005YI-K0 for submit <at> debbugs.gnu.org; Thu, 24 Oct 2024 15:57:33 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1t43xa-0005Y1-O8 for 73991 <at> debbugs.gnu.org; Thu, 24 Oct 2024 15:57:31 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 686ED441793; Thu, 24 Oct 2024 15:56:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1729799812; bh=5f1DVBGMQC1kdorHwdnvtabTy1VsiuOUag/6SEA+Dgg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cSG3iQCqNfGdnnd1WLsYleSMCJ4FPmn7MLG1WVVq371uOxhMclyVZIUL8TODycJLs rACKnsCIMbFR3+IkkKNBLcw4FZRfb02LFQrcrZrUEAOJ0ANES1eAOGYqr2n76sL5G8 slfxi0bNOmGmvPWBTxeBdllHpbz8sFYXm2T0EeRo8L8/pvL8fBKzPQWd2quAI57rDy +y9ykxVUr0ZuN9Zevj2iMMsfTIakGp1UndguOKzxkGockToxSdScn3PDHFatQ+R4q/ vLjCf5TY8NwsgOh0PYfs9Xr8u1Jdo+SHr89eJTVH4aPAW8WvwngwO1dTmHc2+H3E4v jf20TbZHMb97g== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5FC9344176D; Thu, 24 Oct 2024 15:56:52 -0400 (EDT) Received: from pastel (69-196-161-60.dsl.teksavvy.com [69.196.161.60]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3E52E120C29; Thu, 24 Oct 2024 15:56:52 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Kenta USAMI <zonuexe@HIDDEN> Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width In-Reply-To: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> (Kenta USAMI's message of "Fri, 25 Oct 2024 02:49:08 +0900") Message-ID: <jwvmsitwam1.fsf-monnier+emacs@HIDDEN> References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> Date: Thu, 24 Oct 2024 15:56:51 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: 73991 <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: -3.3 (---) > In Emacs 30.0.91, the debugger does not respond when watching the variable. You can get the same behavior with indent_size = tab tab_width = 4 BTW, I think the patch below is in order: if the user sets "indent_size=tab", which means that the "indentation step" should be equal to `tab-width`, then we should default `indent-tabs-mode` to t (which in EditorConfig parlance means to default `indent_style` to `tab`). Can I push this to `emacs-30` or do you, dear maintainers, prefer that I push it to `master`? Stefan diff --git a/lisp/editorconfig.el b/lisp/editorconfig.el index c21e12559a6..478d94a2dc1 100644 --- a/lisp/editorconfig.el +++ b/lisp/editorconfig.el @@ -437,6 +437,11 @@ editorconfig--get-indentation (when tab_width (setq tab_width (string-to-number tab_width))) + ;; When users choose `indent_size=tab', they most likely prefer + ;; `indent_style=tab' as well. + (when (and (null style) (equal size "tab")) + (setq style "tab")) + (setq size (cond ((editorconfig-string-integer-p size) (string-to-number size))
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Eli Zaretskii <eliz@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 73991) by debbugs.gnu.org; 24 Oct 2024 18:08:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 24 14:08:13 2024 Received: from localhost ([127.0.0.1]:36124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t42Fp-0000OQ-Ap for submit <at> debbugs.gnu.org; Thu, 24 Oct 2024 14:08:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1t42Fn-0000O7-MB; Thu, 24 Oct 2024 14:08:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1t42D6-0004FI-ST; Thu, 24 Oct 2024 14:05:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AcqSC0ciBvo6scxMD536Vvg+RdIrx5/ScrZUg9r7O1c=; b=IVDUCMeBXbJr 7oRePjJsw1JtdV8A6dtLlhmCmGhVKw2v4cyUDhAAVUr3N/vDf23Om+ReGXvGlzIhcKK6juM1m/Z5z x2zfgIZ2qvwQAqTPvbpG2t7IUgi87PhI/QWBnx+cXJZh+YgeBoW0COnOB/Q7l+mNgpHsQPciLFCD7 H6BxsdXNCQgcS3yKhTaAqwZ2jUPOGdbpVKU8BmOyPRS3/ZQsN8ufNyvDY8JxNeas/eJjUAoKGM32m RRAUdJJHdY4nn2rOmrAxalKHnzNHS/HG1xd3mlEORT1U1qEgTA6/B5nJmX4HyaNizegQ64pY1NwSJ pF1QH2WXb+cqO2iYTQHKKQ==; Date: Thu, 24 Oct 2024 21:05:21 +0300 Message-Id: <86a5etcr6m.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Kenta USAMI <zonuexe@HIDDEN>, Stefan Monnier <monnier@HIDDEN> In-Reply-To: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> (message from Kenta USAMI on Fri, 25 Oct 2024 02:49:08 +0900) Subject: Re: bug#73991: EditorConfig bundled with Emacs 30 does not set tab-width References: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73991 Cc: 73991 <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: -3.3 (---) tags 73991 wontfix thanks > From: Kenta USAMI <zonuexe@HIDDEN> > Date: Fri, 25 Oct 2024 02:49:08 +0900 > > 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: This is identical to bug#72808, which we decided we don't currently want to fix, for the reasons explained there.
bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 24 Oct 2024 17:50:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 24 13:50:22 2024 Received: from localhost ([127.0.0.1]:36096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t41yX-0007v6-Tt for submit <at> debbugs.gnu.org; Thu, 24 Oct 2024 13:50:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:49402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zonuexe@HIDDEN>) id 1t41yV-0007uv-HL for submit <at> debbugs.gnu.org; Thu, 24 Oct 2024 13:50:20 -0400 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 <zonuexe@HIDDEN>) id 1t41xk-0003xh-7h for bug-gnu-emacs@HIDDEN; Thu, 24 Oct 2024 13:49:35 -0400 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 <zonuexe@HIDDEN>) id 1t41xa-0001Y1-I3 for bug-gnu-emacs@HIDDEN; Thu, 24 Oct 2024 13:49:24 -0400 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-6e5a15845easo11659187b3.0 for <bug-gnu-emacs@HIDDEN>; 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) MIME-Version: 1.0 From: Kenta USAMI <zonuexe@HIDDEN> Date: Fri, 25 Oct 2024 02:49:08 +0900 Message-ID: <CAJB2i6bJ-uFtufyJ7S-g5p0mn2ip-jeAbaUO44JyxN_vCxErwg@HIDDEN> Subject: EditorConfig bundled with Emacs 30 does not set tab-width To: bug-gnu-emacs@HIDDEN Content-Type: multipart/alternative; boundary="000000000000438a2306253c9f08" Received-SPF: none client-ip=2607:f8b0:4864:20::112e; envelope-from=zonuexe@HIDDEN; 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-Spam-Score: -2.3 (--) 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: -3.3 (---) --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 #<buffer test.js>) editorconfig-set-indentation("tab" "4" "4") editorconfig-set-local-variables(#<hash-table eql 3/65 0x15612d120fc3>) editorconfig--advice-find-file-noselect(#<subr find-file-noselect> "/home/tadsan/poc-emacs30-editorconfig/test.js") apply(editorconfig--advice-find-file-noselect #<subr 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 <div dir=3D"ltr"><div>I use Emacs 30.0.91 and editorconfig-mode.</div><div>= <br></div><div>Emacs version is follows:</div>> This is GNU Emacs 30.0.9= 1 (build 1, aarch64-apple-darwin23.6.0, NS<br>>=C2=A0 appkit-2487.70 Ver= sion 14.7 (Build 23H124)) of 2024-10-22<br><div><br></div><div>I have an .e= ditorconfig file like this:</div><div><br></div><div># .editorconfig</div><= div>root =3D true<br><br>[*.js]<br>indent_size =3D 4<br>indent_style =3D ta= b</div><div># .editorconfig ends here</div><div><br></div><div>When I open = a *.js file in the same directory, the tab-width variable is not set.</div>= <div><br></div><div>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:</div><div><br>= </div><div>Debugger entered--setting tab-width in buffer test.js to 4:<br>= =C2=A0 debug--implement-debug-watch(tab-width 4 set #<buffer test.js>= )<br>=C2=A0 editorconfig-set-indentation("tab" "4" &quo= t;4")<br>=C2=A0 editorconfig-set-local-variables(#<hash-table eql 3= /65 0x15612d120fc3>)<br>=C2=A0 editorconfig--advice-find-file-noselect(#= <subr find-file-noselect> "/home/tadsan/poc-emacs30-editorconfig= /test.js")<br>=C2=A0 apply(editorconfig--advice-find-file-noselect #&l= t;subr find-file-noselect> "/home/tadsan/poc-emacs30-editorconfig/t= est.js")<br>=C2=A0 find-file-noselect("/home/tadsan/poc-emacs30-e= ditorconfig/test.js")<br>=C2=A0 command-line-1(("-l" "i= nit.el" "test.js"))<br>=C2=A0 command-line()<br>=C2=A0 norma= l-top-level()</div><div><br></div><div><div>Emacs version is follows:</div>= </div><div>> GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu) of 2023-05-14= , modified by Debian</div><div><br></div><div>In Emacs 30.0.91, the debugge= r does not respond when watching the=C2=A0variable.</div><div><br></div><di= v>The files I used to check the operation are below:</div><div><a href=3D"h= ttps://github.com/zonuexe/poc-emacs30-editorconfig">https://github.com/zonu= exe/poc-emacs30-editorconfig</a></div><div><br></div><div>Thank you in adva= nce for your work on the Emacs 30 release.</div></div> --000000000000438a2306253c9f08--
Kenta USAMI <zonuexe@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#73991
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.