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, 23 Dec 2023 11:04:10 +0200 Message-ID: <83msu1e1dh.fsf@gnu.org> References: <4ef658bb-9336-439e-aba6-2b1caca9fda3@email.android.com> <83ttoimkc4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19816"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spavkov@ilstu.edu, 67556@debbugs.gnu.org, casouri@gmail.com To: theo@thornhill.no Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 23 10:05:09 2023 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 1rGxwR-0004qd-Kt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Dec 2023 10:05:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGxwJ-0003D6-Fv; Sat, 23 Dec 2023 04:04:59 -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 1rGxwH-0003Cv-Pj for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 04:04:57 -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 1rGxwH-0001DD-HS for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 04:04:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGxwM-0005GM-Jd for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 04:05:02 -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, 23 Dec 2023 09:05:02 +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.170332227320188 (code B ref 67556); Sat, 23 Dec 2023 09:05:02 +0000 Original-Received: (at 67556) by debbugs.gnu.org; 23 Dec 2023 09:04:33 +0000 Original-Received: from localhost ([127.0.0.1]:48537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGxvt-0005FY-CC for submit@debbugs.gnu.org; Sat, 23 Dec 2023 04:04:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGxvq-0005FI-Fx for 67556@debbugs.gnu.org; Sat, 23 Dec 2023 04:04:31 -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 1rGxvf-0000uV-Ea; Sat, 23 Dec 2023 04:04:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=auYQIuItVansJkskiblVY5mK0JJDLk23DTw/sPk5+DQ=; b=mz+4RdeYcRIigTANu1mK prXshrJY5aFAg8WKFK6+MSSPjUhEBO1HHEKamoV2Sms0R/K+HyUNp6gYFv8IujK+OT0ZlsrsnU3aB 56ZBJClhjzyTbjSshbm+Rai/tTSmksJLNUuRKDg6BOUdzUeYYylUIIsKNKT8ouottIY4yWRjzINKz TplW6ctDkZG1NXqIe1yhI+5FFk6oIL8/V26Xa8v7cNVZLccOslcQSEUzzDL927ibyubu82hWrIYi9 vpSYue/HBU2E08BpCda1xbRDWV0jHTRWev2/7cPH8M4Tvebr/mrV2mhQS9dqdiiqtIME0FWCC7D+e 0Qw+Mr5UB8dDBw==; In-Reply-To: <83ttoimkc4.fsf@gnu.org> (message from Eli Zaretskii on Sat, 16 Dec 2023 13:56:59 +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:276716 Archived-At: Ping! Ping! Theo, please chime in. > Cc: spavkov@ilstu.edu, 67556@debbugs.gnu.org > Date: Sat, 16 Dec 2023 13:56:59 +0200 > From: Eli Zaretskii > > Theo, any progress? This bug is one of those which I'd like to > resolve before releasing Emacs 29.2. Could you please look into this? > > Thanks. > > > Date: Sun, 10 Dec 2023 01:56:55 -0800 > > Cc: Spencer Pavkovic , 67556@debbugs.gnu.org > > From: Yuan Fu > > > > > > > > On 12/9/23 8:40 AM, Theodor Thornhill wrote: > > > > > > > > > On Dec 9, 2023 09:26, Eli Zaretskii wrote: > > > > > > > Date: Thu, 30 Nov 2023 16:28:11 -0600 > > > > From:  Spencer Pavkovic via "Bug reports for GNU Emacs, > > > >  the Swiss army knife of text editors" > > > > > > > > If you are in java-ts-mode, attempting to put an opening curly > > > bracket > > > > '{' on it's own line will not indent the bracket at all. > > > > > > > > While I expect it to place the bracket on the same indent level > > > as the > > > > block (like regular java-mode), it is always far left with 0 tabs. > > > > > > > > I did run with emacs -Q and the same thing happened. > > > > > > > > // EXPECTED > > > > public class Thing > > > > { > > > >       public Thing() > > > >       { > > > >           try > > > >           { > > > >               // stuff > > > >           } catch (Exception e) > > > >           { > > > >               // stuff > > > >           } > > > >       } > > > > } > > > > > > > > // ACTUAL > > > > public class Thing > > > > { > > > >       public Thing() > > > > { > > > >           try > > > > { > > > >               // stuff > > > >           } catch (Exception e) > > > > { > > > >               // other stuff > > > >           } > > > >      } > > > > } > > > > > > Yuan and Theo, any comments? > > > > > > This can be supported, but no Java code is indented like this, though. > > > But it could make sense to support at least _some_ indentation here. I > > > can take a look at this tonight! > > > > > > Thanks for the ping :) > > > Theo > > > > Thank you Theo. I'll leave this to you. > > > > Yuan > > > > > >