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, 09 Dec 2023 10:26:22 +0200 Message-ID: <83sf4bye6p.fsf@gnu.org> References: <6e59a5d3-4365-49c6-9673-85796d4777a4@ilstu.edu> 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="25979"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67556@debbugs.gnu.org To: Spencer Pavkovic , Yuan Fu , Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 09 09:27:20 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 1rBsgC-0006V6-1T for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Dec 2023 09:27:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBsfh-0005W5-MK; Sat, 09 Dec 2023 03:26:49 -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 1rBsfg-0005Vx-QI for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2023 03:26:48 -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 1rBsfg-00026d-Ho for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2023 03:26:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBsft-0002OY-Su for bug-gnu-emacs@gnu.org; Sat, 09 Dec 2023 03:27: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, 09 Dec 2023 08:27: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.17021104219196 (code B ref 67556); Sat, 09 Dec 2023 08:27:01 +0000 Original-Received: (at 67556) by debbugs.gnu.org; 9 Dec 2023 08:27:01 +0000 Original-Received: from localhost ([127.0.0.1]:46766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBsfs-0002OG-Jm for submit@debbugs.gnu.org; Sat, 09 Dec 2023 03:27:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBsfq-0002O1-AZ for 67556@debbugs.gnu.org; Sat, 09 Dec 2023 03:26:59 -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 1rBsfW-0001fn-HY; Sat, 09 Dec 2023 03:26:38 -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=yWLk50OGw4d6l+g+iUtMuONrTkPNPEVvZqcxf7uATAM=; b=eOzPOvW+B6RYu0rPEHln 2GwJEsVwMoOBLZNJ+fZ6YHMhuxX/OBq5RA0uBsRS2hfv9wDRasjFesUDlIDdat5JH1evjoSEEpspR ILjY9GZTb7ugU4YzlCCVWdm9ONGisx7GurdFGZMw4IvIZ32T+f8lZKebl9RFSQWVobz4W8WFVkalq kLhB2ofuv5tBVUvLC8oCv7XgmQwodU1jVZoDdYxbO9THFN4HcArs1xbfxgtXF6IpwG/DDtP7AskgY YeeNQv3HyjYEjV9DuparwyM/QuGXQFGmFSIKFCL1ErcbninKPgmHPc7XxEnKmr3+ZUDBuXnqQySyY ghVtZj1zBXfOUg==; In-Reply-To: <6e59a5d3-4365-49c6-9673-85796d4777a4@ilstu.edu> (bug-gnu-emacs@gnu.org) 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:275828 Archived-At: > 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?