From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruce Stephens Newsgroups: gmane.emacs.bugs Subject: bug#59686: 30.0.50; tree-sitter indentation in some loops and conditional statements is wrong Date: Fri, 2 Dec 2022 10:46:34 +0000 Message-ID: <86268d17-402f-6ae3-9ed7-100a2591e04d@isode.com> References: <9F4F5716-F492-479A-869F-94D8A9391285@gmail.com> <83v8mufbd2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22409"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Cc: casouri@gmail.com, 59686@debbugs.gnu.org To: Eli Zaretskii , Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 11:47:59 2022 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 1p13aI-0005a9-1w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 11:47:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p13ZP-0006RR-Uz; Fri, 02 Dec 2022 05:47:03 -0500 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 1p13ZO-0006Qz-Ii for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 05:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p13ZO-00058Y-8k for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 05:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p13ZN-0007YM-TF for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 05:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bruce Stephens Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 10:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59686 X-GNU-PR-Package: emacs Original-Received: via spool by 59686-submit@debbugs.gnu.org id=B59686.166997800829025 (code B ref 59686); Fri, 02 Dec 2022 10:47:01 +0000 Original-Received: (at 59686) by debbugs.gnu.org; 2 Dec 2022 10:46:48 +0000 Original-Received: from localhost ([127.0.0.1]:45941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p13ZA-0007Y5-4h for submit@debbugs.gnu.org; Fri, 02 Dec 2022 05:46:48 -0500 Original-Received: from waldorf.isode.com ([62.232.206.188]:61953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p13Z4-0007Xp-OJ for 59686@debbugs.gnu.org; Fri, 02 Dec 2022 05:46:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1669977996; d=isode.com; s=june2016; i=@isode.com; bh=N75Ckl6bCrzeyAWGxsoYN60nNBfHBLktXyqiILqafnM=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=CoN4HP4HMKaEBwHJIYgre0YPKhdxhQZaRWOlauxYkBu6hlFvMHJl4BTR+8qbnLc2rRV3Ut Ax/lufdEm+0x2DRbs8BqPVu3Dw3DYtiwSO4wg6+Gye97WHRWwvEvF0pXOimOjfg0jb0stp yfLRLmGTa8CyJlrM4m/cRry44nw82XQ=; Original-Received: from [192.168.1.65] (84.230.200.146.dyn.plus.net [146.200.230.84]) by waldorf.isode.com (submission channel) via TCP with ESMTPSA id ; Fri, 2 Dec 2022 10:46:36 +0000 In-Reply-To: <83v8mufbd2.fsf@gnu.org> Content-Language: en-GB 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:249730 Archived-At: On 02/12/2022 08:39, Eli Zaretskii wrote: > FWIW, this is an unusual style, so I see no catastrophe if it is not 110% > according to expectations. Users can easily fix that by tweaking their BO= Ls > where important. The example I gave would be unusual, I think, but I'd argue that the=20 situations where I saw the problem are quite natural. For example, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 } else if ( MYSTRCMP (attname, SOME_PREFIX_X400ADDRESS) || =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 MYSTRCMP (attname, SOME_PREFIX_X400) ) { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 FOO_ptr orp =3D foo_std2foo (val); or a function declaration with several arguments with types that are=20 rather long. I agree it's not a critical bug but if there's no appropriate general=20 fix it would be helpful to have some guidance for users to resolve our=20 specific cases.