From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#69293: 30.0.50; cc-mode doesn't support "if consteval" Date: Sun, 25 Feb 2024 16:52:40 +0000 Message-ID: References: <877ciyga48.fsf@gmail.com> <86zfvs1vtn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39773"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69293@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= , Herman@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 25 18:00:04 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 1reHrA-000A8X-P1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Feb 2024 18:00:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reHqm-0002LX-9O; Sun, 25 Feb 2024 11:59:40 -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 1reHqk-0002LL-TK for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 11:59:38 -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 1reHqk-0000Lz-Kd for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 11:59:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reHr9-0004gp-BT for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 12:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Feb 2024 17:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69293 X-GNU-PR-Package: emacs Original-Received: via spool by 69293-submit@debbugs.gnu.org id=B69293.170888039717968 (code B ref 69293); Sun, 25 Feb 2024 17:00:03 +0000 Original-Received: (at 69293) by debbugs.gnu.org; 25 Feb 2024 16:59:57 +0000 Original-Received: from localhost ([127.0.0.1]:59425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reHr2-0004fk-N7 for submit@debbugs.gnu.org; Sun, 25 Feb 2024 11:59:56 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:52737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reHqz-0004fA-N1 for 69293@debbugs.gnu.org; Sun, 25 Feb 2024 11:59:54 -0500 Original-Received: (qmail 80001 invoked by uid 3782); 25 Feb 2024 17:52:41 +0100 Original-Received: from acm.muc.de (pd953a142.dip0.t-ipconnect.de [217.83.161.66]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 25 Feb 2024 17:52:41 +0100 Original-Received: (qmail 32487 invoked by uid 1000); 25 Feb 2024 16:52:40 -0000 Content-Disposition: inline In-Reply-To: <86zfvs1vtn.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:280624 Archived-At: Hello, Eli. On Thu, Feb 22, 2024 at 15:18:28 +0200, Eli Zaretskii wrote: > > From: Herman@debbugs.gnu.org, Géza > > Date: Tue, 20 Feb 2024 21:21:27 +0100 > > C++ has a new feature, "if consteval". So one can write code like > > if consteval { > > // do something > > } else { > > // do something else > > } > > The problem is that cc-mode doesn't recognize this construct, lines > > are not indented correctly: the "// do something" and the "} else {" > > receive an additional level of indentation. > Alan, could you please look into this? Yes, I will. Thanks for the forwarding! -- Alan Mackenzie (Nuremberg, Germany).