From: Yuan Fu <casouri@gmail.com>
To: Theodor Thornhill <theo@thornhill.no>, Eli Zaretskii <eliz@gnu.org>
Cc: Spencer Pavkovic <spavkov@ilstu.edu>, 67556@debbugs.gnu.org
Subject: bug#67556: 29.1; java-ts-mode doesn't indent open curly brackets properly
Date: Sun, 10 Dec 2023 01:56:55 -0800 [thread overview]
Message-ID: <a7464825-b742-45f1-882a-498375ef4978@gmail.com> (raw)
In-Reply-To: <4ef658bb-9336-439e-aba6-2b1caca9fda3@email.android.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-10 9: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 [this message]
2023-12-16 11:56 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a7464825-b742-45f1-882a-498375ef4978@gmail.com \
--to=casouri@gmail.com \
--cc=67556@debbugs.gnu.org \
--cc=eliz@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).