From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 12 14:09:05 2025 Received: (at submit) by debbugs.gnu.org; 12 Sep 2025 18:09:05 +0000 Received: from localhost ([127.0.0.1]:51022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ux8Cl-0006vg-Ul for submit@debbugs.gnu.org; Fri, 12 Sep 2025 14:09:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58946) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ux8Cb-0006v0-MT for submit@debbugs.gnu.org; Fri, 12 Sep 2025 14:09:00 -0400 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 1ux8CV-0000iM-8I for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2025 14:08:47 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ux8CT-0002nr-GH for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2025 14:08:46 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-62ee43b5e5bso1672363a12.1 for ; Fri, 12 Sep 2025 11:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757700522; x=1758305322; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=lC9V0zbwc4VtkQZ49V1Fa2fO8dQ/SznkV97GxPt0oiE=; b=VBeEosaicIrG7wq4RVuTQJcsj9bB/Mm2Sw1vqiO7zMNMat8ZscSj+6aGI6ryOR2GL8 fZtjL+qtwq0uHj+10K+IfUI73lLlI80UU8R3CTbtomnje5gW/g37829aZMbVkmQMZX13 iEPwBW3Zo4ErI7Zx06CZ832x3GnZhLU1ZndU5y3ojO/JrKmh7VsYKTa3qXCx2ghoI0Uv zCIXqs7apTAAPv5tgkEwphHiGN09OACRvemWg2xggNckShIvrt3vBR564mqL5Ocy8C9A HgKZRzWffcurlLj/UccKWIqk/s8IweHWMofrl3aR5tT5tcRa89s+uFh3KvgVhRHTpFGR lWug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757700522; x=1758305322; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=lC9V0zbwc4VtkQZ49V1Fa2fO8dQ/SznkV97GxPt0oiE=; b=GchmpisCcUKjBdZT4VqAytZFbjWG/JE4b+Eht7BFXVM/YXNjvl2iIOdyfkSvf/Kk4r uZhojTwkUhklswBkEiLhIGigN/xOvez79Pt1Rh1xXpiDoJa54sOH7YcqtLQeZkU56WLM Z1uKzJ99uk+DQSdhUHcDHTusba9TZYDcidyAaqj7rmeMVSQoyqnb51jP+c5iP45vmba7 rK6fyjVyBNMKhwOqnM8FziSJbrOLHOBO/MFCRw713/UlnmKyjLL9LmGMq1z7pwIJGb/p Nc4fcFVM/CXnqbJvkt2cao5kqpu4r5vWnoA5+Ywj2Pep+gtLfX6CRfs3XXZrWfcVYIta kUGw== X-Gm-Message-State: AOJu0YxRZMgvHBWWU5UYeZUr3D/ySevpnetGMCOQMOZVTrW+3fQP/lCS iqP1TGCOn2qYVrOaIzdwka4G0F1oddVvzR55EaLJlNm4F/Jhc9UvDpb3b8Qraw== X-Gm-Gg: ASbGncsoxDH+q6QOrd49rJ2PsgXTKcShJtbySkJZF+r+Qb1Fl1vaArzom6EaXrGk7AH 94D3bzi0L81n3m5zWxOXnqz9gWIp1bMw+NO2LLihrX/scz9RYq8HGQu0yfdXwpIvY0O1LS+RrJN Cy6jiLqNJqsvjORjKd0KkY8neX6EZI8nhPe5a7yT9r/JTrClFgltXUVRo/KsN07cCXrcxxNieO+ RaO0dO1ABXnhfGYAL5SnKPAxFZvqZlVmh6nJuII3ZlBj18UOMyszTZ9uHnQJ6zc5tua9vsa2m5k owY/I5mkUME3bp/It28W7eYhuii30I3X/EPdDLjF9piCjiwXE+gagMgCsxC7qA8mNLo4ZhwpWED cHI8LnL7iWJQwpno2AzfzUKinJrmOgsbOeUaqM8sFtK/F6Cdxb8W1+/Kh X-Google-Smtp-Source: AGHT+IFaaz7qZlSfFNbL53vTbizk97wlfNFDPoN0NcnZ1MGJS4TVlyVOZE1T/T5ywo0gfmmHHMC33A== X-Received: by 2002:a05:6402:210e:b0:62f:af:608e with SMTP id 4fb4d7f45d1cf-62f00af63ecmr128667a12.37.1757700521830; Fri, 12 Sep 2025 11:08:41 -0700 (PDT) Received: from [192.168.1.65] (1F2EF4C2.nat.pool.telekom.hu. [31.46.244.194]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-62ec3400d8bsm3696160a12.43.2025.09.12.11.08.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Sep 2025 11:08:41 -0700 (PDT) Message-ID: <8f9e079e-6b8e-49a4-9a36-87f1ea883610@gmail.com> Date: Fri, 12 Sep 2025 20:08:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Geza Herman Subject: 31.0.50; incorrect c++-mode line indentation for member function template Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=geza.herman@gmail.com; helo=mail-ed1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This little code, the "Foo(T);" line receives an extra level of indentation when using M-x c-indent-line-or-region: struct Foo {     template     Foo(T); }; This worked correctly before, I found that 555ec43a32ea8f3675c5a9d73ca30609eeaa9013 introduced this behavior. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 13 02:35:50 2025 Received: (at 79438) by debbugs.gnu.org; 13 Sep 2025 06:35:50 +0000 Received: from localhost ([127.0.0.1]:52755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uxJrS-0003G4-8N for submit@debbugs.gnu.org; Sat, 13 Sep 2025 02:35:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46082) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uxJrP-0003Fd-Qv for 79438@debbugs.gnu.org; Sat, 13 Sep 2025 02:35:48 -0400 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 1uxJrJ-00011u-QJ; Sat, 13 Sep 2025 02:35:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=/hbOZbLxWxzaU88Mp6SWj2aMBu2rDuuL+G/RFmn7H6c=; b=bgc8Y3n7cCTfktHhRdjU YBtOrttPS+n0MxUKuXTZiUj/WmZ/ikcZI/4hF1mkH5dhmVD+1E2VVlSI8WCAGQl+dQFFsZ8dDGzrf PTrRIjoSusm/J31qWNVv2Z2PniSRp2Wr4iOzL00aIk4ogpoCYEmNQZ5SPVogsfuv8DNFkgf3sItUB IVRq9UP2Sg1lc+fte6SXkC6R3geXZRkweb79HZmvAfz4Up3fSEmYHLcwC+A5SVItH0oo4O5wwHFfR 0UuDrLHILilHQjsO1iKQNssaXRXmAFphNBt4fGY/rIuuBsX2Ye06DnpWliq57fNfdo16UyLinfm3K qz9u2dl2RcHWsw==; Date: Sat, 13 Sep 2025 09:35:39 +0300 Message-Id: <86qzwasvus.fsf@gnu.org> From: Eli Zaretskii To: Geza Herman , Alan Mackenzie In-Reply-To: <8f9e079e-6b8e-49a4-9a36-87f1ea883610@gmail.com> (message from Geza Herman on Fri, 12 Sep 2025 20:08:40 +0200) Subject: Re: bug#79438: 31.0.50; incorrect c++-mode line indentation for member function template References: <8f9e079e-6b8e-49a4-9a36-87f1ea883610@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79438 Cc: 79438@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 12 Sep 2025 20:08:40 +0200 > From: Geza Herman > > This little code, the "Foo(T);" line receives an extra level of > indentation when using M-x c-indent-line-or-region: > > struct Foo { >     template >     Foo(T); > }; > > This worked correctly before, I found that > 555ec43a32ea8f3675c5a9d73ca30609eeaa9013 introduced this behavior. Thanks, I added Alan to the discussion. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 15 15:31:19 2025 Received: (at 79438) by debbugs.gnu.org; 15 Sep 2025 19:31:19 +0000 Received: from localhost ([127.0.0.1]:43381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uyEv0-0005wY-FT for submit@debbugs.gnu.org; Mon, 15 Sep 2025 15:31:18 -0400 Received: from mail.muc.de ([193.149.48.3]:38515) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uyEuu-0005ve-VQ for 79438@debbugs.gnu.org; Mon, 15 Sep 2025 15:31:13 -0400 Received: (qmail 20523 invoked by uid 3782); 15 Sep 2025 21:31:05 +0200 Received: from muc.de (p4fe15fdd.dip0.t-ipconnect.de [79.225.95.221]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 15 Sep 2025 21:31:05 +0200 Received: (qmail 26875 invoked by uid 1000); 15 Sep 2025 19:31:05 -0000 Date: Mon, 15 Sep 2025 19:31:05 +0000 To: Eli Zaretskii Subject: Re: bug#79438: 31.0.50; incorrect c++-mode line indentation for member function template Message-ID: References: <8f9e079e-6b8e-49a4-9a36-87f1ea883610@gmail.com> <86qzwasvus.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86qzwasvus.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79438 Cc: 79438@debbugs.gnu.org, Geza Herman X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Eli and Geza. On Sat, Sep 13, 2025 at 09:35:39 +0300, Eli Zaretskii wrote: > > Date: Fri, 12 Sep 2025 20:08:40 +0200 > > From: Geza Herman > > This little code, the "Foo(T);" line receives an extra level of > > indentation when using M-x c-indent-line-or-region: > > struct Foo { > >     template > >     Foo(T); > > }; > > This worked correctly before, I found that > > 555ec43a32ea8f3675c5a9d73ca30609eeaa9013 introduced this behavior. Geza, thanks for taking the trouble to report this bug. It looks like it will be fairly easy to solve, by binding an existing CC Mode line-up function to the syntactic symbol class-field-cont. I will look at this more thoroughly in the coming day or two. > Thanks, I added Alan to the discussion. Eli, thanks, as always, for telling me about the bug! -- Alan Mackenzie (Nuremberg, Germany).