From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= Newsgroups: gmane.emacs.bugs Subject: bug#61541: 30.0.50; Wrong indentarion in csharp-mode Date: Fri, 17 Feb 2023 22:06:50 +0100 Message-ID: <305e7060-58cc-344a-ae1a-98c82510aa88@secure.kjonigsen.net> References: <87k00i7hko.fsf.ref@aol.com> <87k00i7hko.fsf@aol.com> <87a61cozw8.fsf@thornhill.no> Reply-To: jostein@kjonigsen.net Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17676"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Cc: jostein@kjonigsen.net, 61541@debbugs.gnu.org To: Theodor Thornhill , Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 17 22:07:36 2023 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 1pT7x8-0004M6-Ke for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Feb 2023 22:07:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT7we-0000XN-3C; Fri, 17 Feb 2023 16:07:04 -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 1pT7wc-0000XB-Sy for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 16:07:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pT7wc-0000rt-Ak for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 16:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pT7wb-0008Ir-Px for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 16:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2023 21:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61541 X-GNU-PR-Package: emacs Original-Received: via spool by 61541-submit@debbugs.gnu.org id=B61541.167666802131911 (code B ref 61541); Fri, 17 Feb 2023 21:07:01 +0000 Original-Received: (at 61541) by debbugs.gnu.org; 17 Feb 2023 21:07:01 +0000 Original-Received: from localhost ([127.0.0.1]:41696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT7wa-0008Ic-Jg for submit@debbugs.gnu.org; Fri, 17 Feb 2023 16:07:00 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT7wZ-0008IP-5U for 61541@debbugs.gnu.org; Fri, 17 Feb 2023 16:06:59 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B8D8D5C0053; Fri, 17 Feb 2023 16:06:53 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 17 Feb 2023 16:06:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:sender :subject:subject:to:to; s=fm3; t=1676668013; x=1676754413; bh=fw B/MLMoo/HwPobjykIrc+1Uny7a5hw0lKeIrKG2O/I=; b=Stn2fPFvTdS/JZ4jyV q3QePmbMwb3sn1psP9VVAWXR2AXLYV1r7dDL66xswt3N+H022+BPDiu4FpDzJcA7 enjIdpAp63szLm9RtPTeIv3ssDLEDMro7oc/s2P3/eWPxyuKCAm+z1svf32ORswB AYcbB6nVzjmApFCNs1vyM1aUL0T/8JnE9X6tKN6bHvpXF0EcDVODciAz8pN4hKoF k1M3ho2CmlMymphdEVRzt/V/BQTk9hsO8KIynNF1DLRB0JysDlgJiwVofqL+J2V/ 3rmnEQTOLMY5n9KhpGGfMYXxxvqtn8UhDwYXk4/NF+EyZ85YpZrbcB2ViSCbG0x6 Yxpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1676668013; x=1676754413; bh=fwB/MLMoo/HwPobjykIrc+1Uny7a5hw0lKe IrKG2O/I=; b=lDKlhXWftpGNsCZjAQ5asxkIjgEX99QTBouV4WjeY4Buq+qBrHp jYTXX/9I1A40cKdTxZp+PdjmIt54W/5Rr90o056r9JEtazdd/wt5MDllfAhzcpEx 5HwJuS1BjJNiUtgJbfd7ndn11xNoRkkKmlPdnXB52jZ6vNjI1TcjgqVagNEX4Cpi A7ada1CT5Y3nNRInDN/TcJnEOF2MaCg/LPanWFKqQ9XL+xCCqAoA9aN9oo7+lhAl vndX9A4BGzK37P0GpBT6LPY3tpok48dCtNxdnof3N3XMBFrQ7D1A5k2Kyizjwy7R +00AkSOKVLdhCGc2tzhA/hfR+c5C8MRIuzA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeiledgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfghruffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefl ohhsthgvihhnucfmjhppnhhighhsvghnuceojhhoshhtvghinhesshgvtghurhgvrdhkjh honhhighhsvghnrdhnvghtqeenucggtffrrghtthgvrhhnpefhgeevvefhfeeffedtvdfh vdeiieffheeiheegheegtddtkeevffelteetgedvjeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhsthgvihhnsehsvggtuhhrvgdrkhhj ohhnihhgshgvnhdrnhgvth X-ME-Proxy: Feedback-ID: ib2f84088:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Feb 2023 16:06:52 -0500 (EST) Content-Language: en-GB, nb-NO In-Reply-To: <87a61cozw8.fsf@thornhill.no> 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:255904 Archived-At: 2/17/23 20:28, Theodor Thornhill wrote: > Ergus writes: > >> Hi: >> >> I just found that this indentations are wrong in csharp mode: >> >> // wrong >> new myNamespace.myClass >> { >> Name1 = x.Value, // defun-block-intro >> var2 = 2 // statement-cont >> } // statement-cont >> >> >> The problem seems to be related with the dot (.) in the new, because >> this variant indents correctly: >> >> // right >> new myClass >> { >> Name1 = x.Value, // brace-list-intro >> var2 = 2 // brace-list-entry >> } // brace-list-close >> >> >> csharp-ts-mode is doing it right BTW. >> > Hi! > > Yeah, this is one of the harder issues iirc, and one of the ones that > made us move to tree-sitter in csharp-mode in the first place. > > What do you think Jostein? > > Patches welcome! > > Theo > First of all: Thanks for a detailed bug-report. Then for the bad news: I may be missing something here. I'm on the latest revision of the emacs-29 branch, and I really can't reproduce at all. I've tried typing out the concrete code-samples above, and I've tried copy-pasting them. No matter what I do, I cannot reproduce the behaviour outlined above. Ergus: Could you come up with a even more complete example? I mean... If I can't reproduce, I definitely won't be able to come up with a patch. -- Jostein