From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67556: 29.1; java-ts-mode doesn't indent open curly brackets properly Date: Sat, 17 Feb 2024 10:35:25 +0200 Message-ID: <868r3jv67m.fsf@gnu.org> References: <4ef658bb-9336-439e-aba6-2b1caca9fda3@email.android.com> <83ttoimkc4.fsf@gnu.org> <83msu1e1dh.fsf@gnu.org> <87sf3mvjqj.fsf@thornhill.no> <834jg292fv.fsf@gnu.org> <83plyanuof.fsf@gnu.org> <83r0ictlui.fsf@gnu.org> <86wmrbs869.fsf@gnu.org> <3d3f645e-c2cd-4184-adf9-adf459a65f67@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spavkov@ilstu.edu, 67556@debbugs.gnu.org, casouri@gmail.com, theo@thornhill.no To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 17 09:35:57 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 1rbGAv-0007FV-Kn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Feb 2024 09:35:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbGAl-0002sJ-U8; Sat, 17 Feb 2024 03:35:47 -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 1rbGAj-0002s9-Rb for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 03:35:46 -0500 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 1rbGAg-00006p-FM for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 03:35:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbGAz-0005iq-TP for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 03:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2024 08:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67556 X-GNU-PR-Package: emacs Original-Received: via spool by 67556-submit@debbugs.gnu.org id=B67556.170815895621986 (code B ref 67556); Sat, 17 Feb 2024 08:36:01 +0000 Original-Received: (at 67556) by debbugs.gnu.org; 17 Feb 2024 08:35:56 +0000 Original-Received: from localhost ([127.0.0.1]:60437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbGAu-0005iX-Aq for submit@debbugs.gnu.org; Sat, 17 Feb 2024 03:35:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbGAs-0005iK-PI for 67556@debbugs.gnu.org; Sat, 17 Feb 2024 03:35:55 -0500 Original-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 ) id 1rbGAS-00004r-FK; Sat, 17 Feb 2024 03:35:28 -0500 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=cgnm9nrJnKuxeWvZfKNFl7fcGQegHwF6MMpmvx9u3Bo=; b=DzEt/ig6ZANa 370y1nAAgDWbr3Pujr44gch2GXCuY67QZ9vKpJAGW4VuLsyZMqXjxIjX6NP5MQIr2FQHys+UmJSX4 25X4kh84ioYIr76eIFgdkjT5EPz9D+QKD1GROQ1jsYK2ABGtBOILFEm+NpIMJKbM21nBbajcvieM4 LqxKOOd5oFzFTPKwJGTCj1/hfI9OLphxTpzfPAfSsx72EZn3+KSJhua4zNQ1Nql39J9hsRapmu4B3 5dcT481FHnE2TaW5AGvIjaWOxvyNEHj6T023B0+cQxIxHtxoTgWVd065eaR7SnzVoPt7HokOajbGh GBFIksXOTOXwvOetKBndjQ==; In-Reply-To: <3d3f645e-c2cd-4184-adf9-adf459a65f67@gutov.dev> (message from Dmitry Gutov on Mon, 12 Feb 2024 00:42:50 +0200) 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:280119 Archived-At: > Date: Mon, 12 Feb 2024 00:42:50 +0200 > Cc: spavkov@ilstu.edu, 67556@debbugs.gnu.org > From: Dmitry Gutov > > On 11/02/2024 10:43, Eli Zaretskii wrote: > > Ping! Ping! Ping! Yuan and Theo, could you please chime in? > > Here's a minimal patch, consisting of a new rule and a couple of > replacements where the new standalone-parent anchor is used instead of > the helper c-ts-common-statement-offset. > > Because the latter behaves differently when the opening curly is on a > separate line, and we don't really want that. > > A more finished change will likely either switch over to > standalone-parent completely, or go back and revamp > c-ts-common-statement-offset to avoid this distinction (despite the > name, it only remains in use in java-ts-mode these days). > > The former has been a simpler route so far, so I suggest we at least > commit the attached. No further comments, so I suggest that you install this on master. Thanks.