Subject: Re: bug#75154: 31.0.50; java-ts-mode. Issues with Indentation

From: Eli Zaretskii <[email-masked]>
Date: Sat, 28 Dec 2024 10:37:53 +0200

> From: Artem <[email-masked]>
> Date: Fri, 27 Dec 2024 18:34:45 +0300
> 
> 2) Inner Classes
> Example 1:
> public class Outer {
> class Inner {| <-- cursor here moves Inner class unexpectedly
> 
>     }
> }
> Example 2:
> public class Outer {
>     class Inner { // ???
>         | <-- cursor here.           
>     }
> }
> 
> Why does this happen?

Crystal ball says this is because electric-indent-mode is turned on
(it is turned on by default in Emacs).