From: Eli Zaretskii <eliz@gnu.org>
To: theo@thornhill.no, Yuan Fu <casouri@gmail.com>
Cc: spavkov@ilstu.edu, 67556@debbugs.gnu.org
Subject: bug#67556: 29.1; java-ts-mode doesn't indent open curly brackets properly
Date: Sat, 16 Dec 2023 13:56:59 +0200 [thread overview]
Message-ID: <83ttoimkc4.fsf@gnu.org> (raw)
In-Reply-To: <a7464825-b742-45f1-882a-498375ef4978@gmail.com> (message from Yuan Fu on Sun, 10 Dec 2023 01:56:55 -0800)
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@ilstu.edu>, 67556@debbugs.gnu.org
> From: Yuan Fu <casouri@gmail.com>
>
>
>
> On 12/9/23 8:40 AM, Theodor Thornhill wrote:
> >
> >
> > On Dec 9, 2023 09:26, Eli Zaretskii <eliz@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@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
>
next prev parent reply other threads:[~2023-12-16 11:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-30 22:28 bug#67556: 29.1; java-ts-mode doesn't indent open curly brackets properly Spencer Pavkovic via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-09 8:26 ` Eli Zaretskii
2023-12-09 16:40 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-09 17:08 ` Eli Zaretskii
2023-12-10 9:56 ` Yuan Fu
2023-12-16 11:56 ` Eli Zaretskii [this message]
2023-12-23 9:04 ` Eli Zaretskii
2023-12-28 8:01 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-28 8:05 ` Eli Zaretskii
2024-01-09 20:00 ` Eli Zaretskii
2024-01-20 9:06 ` Eli Zaretskii
2024-02-11 8:43 ` Eli Zaretskii
2024-02-11 22:42 ` Dmitry Gutov
2024-02-17 8:35 ` Eli Zaretskii
2024-02-17 13:31 ` Dmitry Gutov
2024-02-17 13:56 ` Eli Zaretskii
2024-02-17 20:36 ` Dmitry Gutov
2024-02-11 22:44 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ttoimkc4.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=67556@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=spavkov@ilstu.edu \
--cc=theo@thornhill.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.