GNU bug report logs - #69571
29.2; csharp-mode indentation: Misaligned closing brace in blocks starting below "new"

Previous Next

Package: emacs;

Reported by: Carlos <carlos <at> cvkm.cz>

Date: Tue, 5 Mar 2024 21:49:02 UTC

Severity: normal

Found in version 29.2

Fixed in version 29.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Carlos <carlos <at> cvkm.cz>, Theodor Thornhill <theo <at> thornhill.no>,
 Yuan Fu <casouri <at> gmail.com>
Cc: 69571 <at> debbugs.gnu.org
Subject: Re: bug#69571: 29.2;
 csharp-mode indentation: Misaligned closing brace in blocks starting
 below "new"
Date: Sat, 09 Mar 2024 10:38:30 +0200
> Date: Tue, 5 Mar 2024 22:09:51 +0100
> From: Carlos <carlos <at> cvkm.cz>
> 
> Any block starting on the line immediately below a line having the
> string "new" will have its closing brace aligned with the opening one.
> 
> See the following code:
> 
> public class Foo {
>     void Bar () {
> 	var x = new X(); // [1]
> 	for (;;) {
> 	    x();
> 		 }  // [2]
>     }
> }
> 
> Line [1] says "new". The closing brace in line [2] is aligned to the
> opening brace.
> 
> If you comment out the "new" (or the whole line) the problem persists.
> 
> If you remove the "new" the problem goes away and [2] is correctly
> aligned.
> 
> If you insert a line between line [1] and the one having the opening
> brace the problem goes away.

Theo and Yuan, could you please look into this?




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

Previous Next


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