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#72263: 31.0.50; Wrong indentation c++-ts-mode Date: Thu, 01 Aug 2024 08:06:38 +0300 Message-ID: <868qxgygpt.fsf@gnu.org> References: <87cyn3vequ.fsf.ref@aol.com> <87cyn3vequ.fsf@aol.com> <86h6ce53pw.fsf@gnu.org> <266A7254-4449-4F6A-A69F-D98C6DF8CC2E@aol.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13138"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 72263@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 01 07:08:01 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 1sZO2j-0003Ev-0N for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Aug 2024 07:08:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZO2V-00058I-6N; Thu, 01 Aug 2024 01:07:47 -0400 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 1sZO2U-000586-5h for bug-gnu-emacs@gnu.org; Thu, 01 Aug 2024 01:07:46 -0400 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 1sZO2T-0002at-SZ for bug-gnu-emacs@gnu.org; Thu, 01 Aug 2024 01:07:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=dacxTz/qkZprc4wdzQDEcCAHyRjaXCr7mf5iM4ZFjCE=; b=flTVFypLhTByACeKLvBnm3x48Fk8kO7BgSjBnCB7VBjGAhE4XejRLp8hCKnHCI6naNCs65kPirhwO48poo5jomBVcLUHJJTtKHzGn9uZDxU9zoLjtpzS8MbWU1Yz3OYZR92u8ScAGxf8C5gGIYgg/1yGoxqBqn+AthTVojJZFiM0Wqasi28hTzc2hxb9REiefDcuUF4cOmApdj/+x/vePB6hmqKMT1TNz13BUwUFQc8JIIjJ3CPLYqvAWhYDqq1uXXmL6zKlZlHAlDAWGHI7fCSUfrqkjvQXE6n86Gun1wKjNnNYASI+cyGwwfZLB1rQu7XYf/KBcGW6W8EPdRKvag==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sZO2k-0007h6-8N for bug-gnu-emacs@gnu.org; Thu, 01 Aug 2024 01:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Aug 2024 05:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72263 X-GNU-PR-Package: emacs Original-Received: via spool by 72263-submit@debbugs.gnu.org id=B72263.172248882329150 (code B ref 72263); Thu, 01 Aug 2024 05:08:02 +0000 Original-Received: (at 72263) by debbugs.gnu.org; 1 Aug 2024 05:07:03 +0000 Original-Received: from localhost ([127.0.0.1]:50672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZO1n-0007Zy-6k for submit@debbugs.gnu.org; Thu, 01 Aug 2024 01:07:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZO1l-0007Y7-GD for 72263@debbugs.gnu.org; Thu, 01 Aug 2024 01:07:02 -0400 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 1sZO1P-0002SX-Ns; Thu, 01 Aug 2024 01:06:39 -0400 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=dacxTz/qkZprc4wdzQDEcCAHyRjaXCr7mf5iM4ZFjCE=; b=AAq+gFqX1ZKq jZxpsMBQNsUxprlH0XcmsALZ3SPR35flTW6SgpZE1NQceZ2Ulf6DhafxL/cvwhoYL6Mig7HC8uLdx POaveyIl/KAHZDTwOw1ubLb7OdDUnt7pmVnYgScR22Hv1RxVrXgXhdF/ihMgGM+JhlN1ASRuvwLEU jGFv9T5BpBxMEcSjIgWLJn06jvvriKjasyws8HxbK6WiSYHJu021ZnEuyBowKFWdIn+N8w+iMiN3F 5jmOKxumtNx+tirRLnbEXBywyROPS8YhC163iWdB5P7LZv/+DqKv+fLJwYRolJRcxSUCViMuIkzm3 8TlWcSdufTxLV2yeF/k2hA==; In-Reply-To: <266A7254-4449-4F6A-A69F-D98C6DF8CC2E@aol.com> (message from Ergus on Wed, 31 Jul 2024 23:09:53 +0200) 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:289599 Archived-At: > Date: Wed, 31 Jul 2024 23:09:53 +0200 > From: Ergus > CC: 72263@debbugs.gnu.org > > I found another indentation issue in if-else conditions without > parenthesis: > > if (pid == 0) > print "hello from the child" > else > print "hello from the parent" > > The else is not indented properly: The above is not valid C++ code, AFAIU, so I don't understand why you expect c++-ts-mode to handle it properly (and what exactly is "proper" indentation in that case?).