From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Greg Long Newsgroups: gmane.emacs.bugs Subject: bug#26674: 24.3; Inconsistent indentation in C++ mode initialization lists Date: Wed, 26 Apr 2017 17:32:42 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403043c4f484df8ec054e1b1869 X-Trace: blaine.gmane.org 1493253611 31138 195.159.176.226 (27 Apr 2017 00:40:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2017 00:40:11 +0000 (UTC) To: 26674@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 27 02:40:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3XTZ-0007vA-Nk for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Apr 2017 02:40:06 +0200 Original-Received: from localhost ([::1]:57655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3XTd-0005TR-R0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 20:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3XSa-0004xx-Hy for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 20:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3XSZ-0002D9-0a for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 20:39:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3XSY-0002D4-RV for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 20:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3XSY-0003dm-LI for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 20:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Greg Long Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Apr 2017 00:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26674 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149325353213961 (code B ref -1); Thu, 27 Apr 2017 00:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2017 00:38:52 +0000 Original-Received: from localhost ([127.0.0.1]:42160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3XSO-0003d7-32 for submit@debbugs.gnu.org; Wed, 26 Apr 2017 20:38:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3XMb-0003Ui-Tk for submit@debbugs.gnu.org; Wed, 26 Apr 2017 20:32:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3XMV-0008Dq-8q for submit@debbugs.gnu.org; Wed, 26 Apr 2017 20:32:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57727) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d3XMV-0008De-5A for submit@debbugs.gnu.org; Wed, 26 Apr 2017 20:32:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3XMT-0003rK-AB for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 20:32:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3XMR-0008Cs-Q8 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 20:32:45 -0400 Original-Received: from mail-ua0-x229.google.com ([2607:f8b0:400c:c08::229]:33176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3XMR-0008Cj-KZ for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 20:32:43 -0400 Original-Received: by mail-ua0-x229.google.com with SMTP id j59so10776355uad.0 for ; Wed, 26 Apr 2017 17:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=65AyoGjEznWpymEdOOG8JHxCbMTMUGonu+lxtE86YAw=; b=pGCMi6ZjApU2yThE9H8D6fHeKfbzK7shkDwilYihuI8dMfrSdz27JJjUf64rwbA2hK i6NxdtxPEVuzCO6zVMzlGMIXtapUthCGpfgpK5nsILyXavEJK4LHDIWvhR+eUB+Q8TQ0 6SStr0G0Uw/SfUB5wMqnULHUwCBxsqBBYSzdwtXKAaKjqr5YeyCenR9/6xp0TF597BlN cLax8fj1v7thZwNMJU/aEozENfszEtRt1pOKIfODlTWmy/EGfYZwKC+vcPFpcS/5Pr+M tVUk/iPmTzTzqvHy9TzEDfL/aufaV5e055JxOTIcznmj5lQ8uMrN24G0txpd79r+RdBJ M3ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=65AyoGjEznWpymEdOOG8JHxCbMTMUGonu+lxtE86YAw=; b=enF2UrGAghLRk5H1iXYHNCKesc2qbiiP3ZyeefdVYeP11wDvLzzWF+hNztmgb4A8Mr IJCa9QTBsj05JlQ6OkYazB5+ViH//wkPHEm6tFk7fyF08vltpNrc4w3U4nCKnZ2kOk+w C7kcqodknH+FTg0XYyPa+Q5a87q4fudYkjnmNz/YIk5VUN8yhhPNSXiC4JqDqikSxdhA r9jc5naV7sIcb0BxpYBq4dE/F6DpMEv8fiQCfH8GZzfawD42vOgeKdcdZIxfKJ0sv7uX 5JYA0E6kcXkj6jPK+dapAikC4GiJ9LSTKqYsPRzhk00HOEE5/K0nkmS/PGgz1ZUTMEwN xWbQ== X-Gm-Message-State: AN3rC/4EjIyHsroIPRJuijjHtuPTmw7w+6q6CgxZEiAuFtU5lfgQQG/3 mPaGFspnNvAQ85Fn5CFaqsR+c/PnQawE X-Received: by 10.159.59.11 with SMTP id i11mr1557272uah.50.1493253162398; Wed, 26 Apr 2017 17:32:42 -0700 (PDT) Original-Received: by 10.176.85.30 with HTTP; Wed, 26 Apr 2017 17:32:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 26 Apr 2017 20:38:51 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132043 Archived-At: --f403043c4f484df8ec054e1b1869 Content-Type: text/plain; charset=UTF-8 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. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11803000 System Description: Ubuntu 14.04.5 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: , SPC C-_ C-_ C-_ , SPC C-_ C-_ C-_ M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Loading cc-langs...done Loading vc-git...done Mark set Undo! [6 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs gv format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git cc-langs cl cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --f403043c4f484df8ec054e1b1869 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
When creating an initialization list for a constructo= r in C++ mode there
is an inconsistency in indentation. In the fo= llowing code:

foo::foo()
: m_test_var0(1= 00)
, 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_v= ar13(100)
, m_test_var14(100)
, m_test_var15(100)
=
, m_test_var16(100)
, m_test_var17(100)
, m_test_v= ar18(100)
, m_test_var19(100)
, m_test_var20(100)
=
, m_test_var21(100)
, m_test_var22(100)
, m_test_v= ar23(100)
, m_test_var24(100)
, m_test_var25(100)
=
=C2=A0 , m_test_var26(100)
{}

varia= bles inserted before m_test_var25 are not indented, while
ones af= ter 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. Howeve= r
the indentation will always happen eventually. It appears the a= ctual
values within the parentheses don't matter, either.


In GNU Emacs 24.3.1 (x86_64-pc-linux-g= nu, GTK+ Version 3.10.7)
=C2=A0of 2014-03-07 on lamiak, modified = by Debian
Windowing system distributor `The X.Org Foundation'= , version 11.0.11803000
System Description: Ubuntu 14.04.5 LTS

Configured using:
=C2=A0`configure '--build= ' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu= 9;
=C2=A0'--prefix=3D/usr' '--sharedstatedir=3D/var/l= ib' '--libexecdir=3D/usr/lib'
=C2=A0'--localstate= dir=3D/var/lib' '--infodir=3D/usr/share/info'
=C2=A0&= #39;--mandir=3D/usr/share/man' '--with-pop=3Dyes'
=C2= =A0'--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/e= macs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/= site-lisp:/usr/share/emacs/site-lisp'
=C2=A0'--with-crt-d= ir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes'
=C2= =A0'--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars'
=C2=A0'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O= 2 -fstack-protector
=C2=A0--param=3Dssp-buffer-size=3D4 -Wformat = -Werror=3Dformat-security -Wall'
=C2=A0'LDFLAGS=3D-Wl,-Bs= ymbolic-functions -Wl,-z,relro'
=C2=A0'CPPFLAGS=3D-D_FORT= IFY_SOURCE=3D2''

Important settings:
=
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIE= RS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix
= =C2=A0 default enable-multibyte-characters: t

Majo= r mode: C++/l

Minor modes in effect:
=C2= =A0 tooltip-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 t= ool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-nam= e-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0= font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 a= uto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
<= div>=C2=A0 transient-mark-mode: t
=C2=A0 abbrev-mode: t

Recent input:
<C-end> <up> <up>= <up> <end> <up> <return> , SPC C-_=C2=A0
C-_ C-_ <down> <return> , SPC C-_ C-_ C-_ M-x r e p=C2=A0
o r t - e m a c s - b u g <return>

Rec= ent messages:
For information about GNU Emacs and the GNU system,= type C-h C-a.
Loading cc-langs...done
Loading vc-git..= .done
Mark set
Undo! [6 times]

Load-path shadows:
None found.

Features= :
(shadow sort gnus-util mail-extr emacsbug message cl-macs gv fo= rmat-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-p= arse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc= 2045 ietf-drums
mm-util mail-prsvr mail-utils vc-git cc-langs cl = cl-lib cc-mode cc-fonts
easymenu cc-guess cc-menus cc-cmds cc-sty= les cc-align cc-engine cc-vars
cc-defs time-date tooltip ediff-ho= ok vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fonts= et image regexp-opt fringe tabulated-list
newcomment lisp-mode re= gister page menu-bar rfn-eshadow timer select
scroll-bar mouse ji= t-lock font-lock syntax facemenu font-core frame cham
georgian ut= f-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean ja= panese hebrew greek romanian slovak czech european ethiopic
india= n cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
= abbrev minibuffer loaddefs button faces cus-face macroexp files
t= ext-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

--f403043c4f484df8ec054e1b1869--