From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#26674: [Stefan Kangas] Re: bug#26674: 24.3; Inconsistent indentation in C++ mode initialization lists Date: Thu, 22 Oct 2020 18:48:39 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4413"; mail-complaints-to="usenet@ciao.gmane.io" To: 26674@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 23 03:49:16 2020 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 1kVmCi-00013G-BA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Oct 2020 03:49:16 +0200 Original-Received: from localhost ([::1]:37314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVmCg-0005vx-Rr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Oct 2020 21:49:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVmCU-0005vc-KZ for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 21:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVmCU-00046K-Bb; Thu, 22 Oct 2020 21:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVmCU-0002Fh-95; Thu, 22 Oct 2020 21:49:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 23 Oct 2020 01:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26674 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 26674-submit@debbugs.gnu.org id=B26674.16034177278636 (code B ref 26674); Fri, 23 Oct 2020 01:49:02 +0000 Original-Received: (at 26674) by debbugs.gnu.org; 23 Oct 2020 01:48:47 +0000 Original-Received: from localhost ([127.0.0.1]:54310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVmCF-0002FD-Fs for submit@debbugs.gnu.org; Thu, 22 Oct 2020 21:48:47 -0400 Original-Received: from mail-ed1-f54.google.com ([209.85.208.54]:35433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVmCE-0002Ex-7g for 26674@debbugs.gnu.org; Thu, 22 Oct 2020 21:48:46 -0400 Original-Received: by mail-ed1-f54.google.com with SMTP id w25so9998edx.2 for <26674@debbugs.gnu.org>; Thu, 22 Oct 2020 18:48:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:references:mime-version:date:message-id :subject:to; bh=HYA6OZHmeahGiZQk0kUDJ0qCz5wjjL8FEHntyRrP03E=; b=Iw0Svrzcn467N/VkdsJJK1loiAb55XQ67zdSqz7I3GKvNFUm7f3TVmPGGpE1FzeqN6 Mv65T0RutZRhGhWicmOnB9P2V/CuIqB9QceaLZ3kQ4geB79gbitgLP9vCUydBqcJw9H6 NINZByY306op1ZmoTCTe0LLgoROfFbNNpbhmCHlD0lHa4k5uEQQ9LmFse3SC85sWSbvZ D55V7FayddyHSs5p3npAqXuHqqDOgRc/lJi3CH10VfbHIAMCeIJfFAqlThDAIIyxXYmD CC5aN0kLxr8IS3cNTO9Pd1zJJ+Bhy0tolZuhmmxlF8cHLCB5Hp7KJZsI4KJ8b1rrK07d 6Gyg== X-Gm-Message-State: AOAM533I8808hTN9nEASS/e8rhljdAIDgyc5L7oA+F4Fx4qK5q+bLq5P 0rfd8z2BJsSDhTzh/fWERm5L/P3CqrNdmxA3UuirHEid X-Google-Smtp-Source: ABdhPJzCubIjpDKJz/yPw8hxgk60gJxi2gQivlHzTTm+aoSeokAr7srOgWV229Vv9kUmowM73aOjhmNKxbsqt2dgwZY= X-Received: by 2002:aa7:c694:: with SMTP id n20mr94527edq.160.1603417719909; Thu, 22 Oct 2020 18:48:39 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 22 Oct 2020 18:48:39 -0700 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" Xref: news.gmane.io gmane.emacs.bugs:191327 Archived-At: [ Forwarding to the bug tracker since I forgot to include it in Cc. ] -------------------- Start of forwarded message -------------------- From: Stefan Kangas To: Greg Long Subject: Re: bug#26674: 24.3; Inconsistent indentation in C++ mode initialization lists Date: Mon, 10 Aug 2020 13:44:18 -0700 Greg Long writes: > When creating an initialization list for a constructor in C++ mode there > is an inconsistency in indentation. In the following code: > > foo::foo() > : m_test_var0(100) > , m_test_var1(100) > , m_test_var2(100) > , m_test_var3(100) > , m_test_var4(100) > , m_test_var5(100) > , m_test_var6(100) > , m_test_var7(100) > , m_test_var8(100) > , m_test_var9(100) > , m_test_var10(100) > , m_test_var11(100) > , m_test_var12(100) > , m_test_var13(100) > , m_test_var14(100) > , m_test_var15(100) > , m_test_var16(100) > , m_test_var17(100) > , m_test_var18(100) > , m_test_var19(100) > , m_test_var20(100) > , m_test_var21(100) > , m_test_var22(100) > , m_test_var23(100) > , m_test_var24(100) > , m_test_var25(100) > , m_test_var26(100) > {} > > variables inserted before m_test_var25 are not indented, while > ones after m_test_var25 are indented (in the same style as m_test_var26). The > indentation doesn't always happen after exactly 26 variables and the > size of indentation is not always 2 spaces, instead the > behavior seems to depend on the length of the variable strings. However > the indentation will always happen eventually. It appears the actual > values within the parentheses don't matter, either. I can't reproduce this on current master. Are you still seeing this using a recent version of Emacs? If I don't hear back from you within a couple of weeks, I'll just close this bug as unreproducible. Best regards, Stefan Kangas -------------------- End of forwarded message --------------------