From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#69571: 29.2;
 csharp-mode indentation: Misaligned closing brace in blocks starting
 below "new"
Date: Sat, 09 Mar 2024 10:38:30 +0200
Message-ID: <86zfv7yf3t.fsf@gnu.org>
References: <20240305220951.00005489@cvkm.cz>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="32793"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 69571@debbugs.gnu.org
To: Carlos <carlos@cvkm.cz>, Theodor Thornhill <theo@thornhill.no>,
 Yuan Fu <casouri@gmail.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 09 09:39:45 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1risF6-0008La-J6
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Mar 2024 09:39:44 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1risEt-0000rV-2k; Sat, 09 Mar 2024 03:39:31 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1risEs-0000rH-68
 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 03:39:30 -0500
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1risEr-0006qv-UX
 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 03:39:29 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1risFO-0003Ad-EJ
 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 03:40:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 09 Mar 2024 08:40:02 +0000
Resent-Message-ID: <handler.69571.B69571.170997355312118@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 69571
X-GNU-PR-Package: emacs
Original-Received: via spool by 69571-submit@debbugs.gnu.org id=B69571.170997355312118
 (code B ref 69571); Sat, 09 Mar 2024 08:40:02 +0000
Original-Received: (at 69571) by debbugs.gnu.org; 9 Mar 2024 08:39:13 +0000
Original-Received: from localhost ([127.0.0.1]:60522 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1risEa-00039O-LZ
 for submit@debbugs.gnu.org; Sat, 09 Mar 2024 03:39:12 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:35708)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1risEZ-00039C-AO
 for 69571@debbugs.gnu.org; Sat, 09 Mar 2024 03:39:11 -0500
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@gnu.org>)
 id 1risDw-0006ms-Vq; Sat, 09 Mar 2024 03:38:33 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Mk1+E7Egv/o8Ap5T9ulbaivxn4roJHgUqb37EOtcC5s=; b=QZOGeUlC5LgH
 +xBZhpD65VhLzvaHMRjq2prFkvnzamLHpDRfzN0++/7xJwxZiAFF5/+GgUq7h4cuiWb3afw2/uAM0
 nh01nbvnpF1slaVPP/DR/WD6/x2L/6ULGt9zDRerrI/e8h5yU9KFLh9pBMIO+l2m3ut6i2NHZrPdL
 z6Vht1S6364IeUHmR4CKN6Q49vI4b303aVyo9zTp1wAsuBoXPyaqNiLDJYXl7j+e3J4t2m/ALzld9
 WDA3vRzqwxTz3rIgQYODy4NkKkkSlceg5LKaQ+Orh68Xfrd4gXPm0vkYM2X48wS0QUFuaAIr4iM4s
 JWg1AfQdZp/xvk7UBWgMng==;
In-Reply-To: <20240305220951.00005489@cvkm.cz> (message from Carlos on Tue, 5
 Mar 2024 22:09:51 +0100)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:281301
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/281301>

> Date: Tue, 5 Mar 2024 22:09:51 +0100
> From: Carlos <carlos@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?