GNU bug report logs - #67556
29.1; java-ts-mode doesn't indent open curly brackets properly

Previous Next

Package: emacs;

Reported by: Spencer Pavkovic <spavkov <at> ilstu.edu>

Date: Fri, 1 Dec 2023 01:35:02 UTC

Severity: normal

Found in version 29.1

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 67556 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: theo <at> thornhill.no
Cc: spavkov <at> ilstu.edu, 67556 <at> debbugs.gnu.org, casouri <at> gmail.com
Subject: Re: bug#67556: 29.1;
 java-ts-mode doesn't indent open curly brackets properly
Date: Sat, 23 Dec 2023 11:04:10 +0200
Ping! Ping!  Theo, please chime in.

> Cc: spavkov <at> ilstu.edu, 67556 <at> debbugs.gnu.org
> Date: Sat, 16 Dec 2023 13:56:59 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> 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 <spavkov <at> ilstu.edu>, 67556 <at> debbugs.gnu.org
> > From: Yuan Fu <casouri <at> gmail.com>
> > 
> > 
> > 
> > On 12/9/23 8:40 AM, Theodor Thornhill wrote:
> > >
> > >
> > > On Dec 9, 2023 09:26, Eli Zaretskii <eliz <at> gnu.org> 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" <bug-gnu-emacs <at> gnu.org>
> > >     >
> > >     > 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
> > 
> 
> 
> 
> 




This bug report was last modified 1 year and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.