From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 , Theodor Thornhill , Yuan Fu 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: 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 ) 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 ) 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 ) 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 ) 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 ) 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 Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Mar 2024 08:40:02 +0000 Resent-Message-ID: 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 ) 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 ) 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 ) 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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: > Date: Tue, 5 Mar 2024 22:09:51 +0100 > From: Carlos > > 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?