From unknown Mon Jun 23 18:27:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20963 <20963@debbugs.gnu.org> To: bug#20963 <20963@debbugs.gnu.org> Subject: Status: C++ mode indentation of initializers Reply-To: bug#20963 <20963@debbugs.gnu.org> Date: Tue, 24 Jun 2025 01:27:24 +0000 retitle 20963 C++ mode indentation of initializers reassign 20963 emacs,cc-mode submitter 20963 Oliver Fernandes severity 20963 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 11:29:58 2015 Received: (at submit) by debbugs.gnu.org; 2 Jul 2015 15:29:58 +0000 Received: from localhost ([127.0.0.1]:37803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAgR1-000689-T6 for submit@debbugs.gnu.org; Thu, 02 Jul 2015 11:29:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41347) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAdDH-0001F3-Mk for submit@debbugs.gnu.org; Thu, 02 Jul 2015 08:03:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAdD7-0001BD-GD for submit@debbugs.gnu.org; Thu, 02 Jul 2015 08:03:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAdD7-0001B0-Ct for submit@debbugs.gnu.org; Thu, 02 Jul 2015 08:03:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAdCz-0005g1-Nb for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 08:03:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAdCu-00010c-2G for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 08:03:13 -0400 Received: from mx3.informatik.uni-stuttgart.de ([129.69.211.42]:40757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAdCt-0000z3-O9 for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 08:03:07 -0400 Received: from mx.visus.uni-stuttgart.de (impromptu.visus.uni-stuttgart.de [129.69.205.29]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx3.informatik.uni-stuttgart.de (Postfix) with ESMTPS id 1F71161CF for ; Thu, 2 Jul 2015 14:03:06 +0200 (CEST) Received: from barcarole.visus.uni-stuttgart.de (2002:8145:d70e::8145:d70e) by impromptu.visus.uni-stuttgart.de (2002:8145:cd1d::8145:cd1d) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Thu, 2 Jul 2015 14:03:05 +0200 Received: from barcarole.visus.uni-stuttgart.de ([fe80::d43f:f4de:d2f3:7007]) by barcarole.visus.uni-stuttgart.de ([fe80::d43f:f4de:d2f3:7007%17]) with mapi id 15.00.1044.021; Thu, 2 Jul 2015 14:03:05 +0200 From: Oliver Fernandes To: "bug-gnu-emacs@gnu.org" Subject: C++ mode indentation of initializers Thread-Topic: C++ mode indentation of initializers Thread-Index: AQHQtL6d2Lng2Cv7gEGBSLRlnPbFSA== Date: Thu, 2 Jul 2015 12:03:05 +0000 Message-ID: <1435838558051.36914@visus.uni-stuttgart.de> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [129.69.205.123] Content-Type: multipart/alternative; boundary="_000_143583855805136914visusunistuttgartde_" MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 02 Jul 2015 11:29:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) --_000_143583855805136914visusunistuttgartde_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable From: Oliver Fernandes To: bug-gnu-emacs@gnu.org Subject: 24.3; C++ mode indentation of initializers Date: Thu, 02 Jul 2015 13:56:14 +0200 Message-ID: --text follows this line-- #################################################### I get wrong indentation behavior for C++ mode. The following snippet produces this behavior: ---------------------------------------------------- This happens: SomeBase::SomeDerived::SomeFunction(const std::vector< int >& in_somevector= , const std::vector< int >& in_someotherv= ector, const glm::vec3 in_aglmvector, const glm::vec3 in_someotherglmvector, const int in_someint, const int in_someotherint, const float in_somefloat, std::vector< int >& in_someints) : somevector(in_somevector) , someint(in_somei= nt) { } ---------------------------------------------------- This is expected: SomeBase::SomeDerived::SomeFunction(const std::vector< int >& in_somevector= , const std::vector< int >& in_someotherv= ector, const glm::vec3 in_aglmvector, const glm::vec3 in_someotherglmvector, const int in_someint, const int in_someotherint, const float in_somefloat, std::vector< int >& in_someints) : somevector(in_somevector) , someint(in_someint) { } ---------------------------------------------------- The failed indentation seems to be related to the length of the function header, though I did not do extensive testing. The bug could be reproduced on at least 1 other machine. I know this probably has low priority, but it's driving me insane, hope it can be fixed easily :) Thanks for a great piece of software! #################################################### 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.11501000 System Description: Ubuntu 14.04.2 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/2= 4.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-l= isp:/usr/share/emacs/site-lisp' '--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars' 'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -Wall' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2'' Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: workgroups-mode: t global-ede-mode: t ede-minor-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-idle-scheduler-mode: t semantic-mode: t tooltip-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t hs-minor-mode: t Recent input: s o m e f l o a t s o m e w v e c t o r s o e m e o t h e r v e c t o r y e t a n o t h a g l m g l m s e o m e i n t s o m e i n t e o t h e r i n t s o m e v e c t o r s o m e v e c t o r s o m e i n t s o m e n t i i n t M-x r e p o r Recent messages: Auto-saving...done Mark set [5 times] Auto-saving...done Mark set [5 times] To Remove Middle Tag: (Somefunction) Mark set [2 times] Parsing raycast.cpp (LL)...done Auto-saving... Making completion list... byte-code: Beginning of buffer [2 times] Load-path shadows: ~/.emacs.d/lisp/cmake-mode hides /usr/share/emacs24/site-lisp/cmake-data/cm= ake-mode ~/.emacs.d/lisp/asy-mode hides /usr/share/emacs/site-lisp/asy-mode ~/.emacs.d/lisp/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-= lisp/debian-startup /usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emac= s/24.3/lisp/language/thai-word Features: (shadow sort gnus-util mail-extr emacsbug message 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 cuda-mode cl-macs help-fns rect vc-hg misearch multi-isearch vc-git semantic/edit semantic/tag-write vc-dispatcher vc-svn semantic/tag-file ede/linux ede/make semantic/db-file data-debug ring cedet-files semantic/bovine/c semantic/decorate/include semantic/decorate/mode semantic/decorate pulse hideif semantic/db-find semantic/db-ref semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep semantic/bovine semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn hideshow cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode cmake-mode thingatpt workgroups cl cl-lib edmacro kmacro ede/cpp-root ede/emacs ede/speedbar ede/files ede ede/base ede/auto ede/source eieio-speedbar speedbar sb-image dframe eieio-custom wid-edit semantic/db-mode semantic/db gv eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes easymenu semantic/util semantic semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile cconv mode-local cedet iso-transl emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode 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) --_000_143583855805136914visusunistuttgartde_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

From: Oliver Fernandes <oliver.fernandes@visus.uni-stuttgart.de> To: bug-gnu-emacs@gnu.org
Subject: 24.3; C++ mode indentation of initializers
Date: Thu, 02 Jul 2015 13:56:14 +0200
Message-ID: <kerr3oq7oyp.fsf@gabber.visus.uni-stuttgart.de>
--text follows this line--
####################################################
I get wrong indentation behavior for C++ mode.
The following snippet produces this behavior:
----------------------------------------------------
This happens:
SomeBase::SomeDerived::SomeFunction(const std::vector< int >& in_= somevector,
            &nb= sp;            =            const std::vec= tor< int >& in_someothervector,
            &nb= sp;            =            const glm::vec= 3 in_aglmvector,
            &nb= sp;            =            const glm::vec= 3 in_someotherglmvector,
            &nb= sp;            =            const int in_s= omeint,
            &nb= sp;            =            const int in_s= omeotherint,
            &nb= sp;            =            const float in= _somefloat,
            &nb= sp;            =            std::vector<= ; int >& in_someints)
: somevector(in_somevector)
            &nb= sp;            =             &nb= sp;            =        , someint(in_someint) {
}
----------------------------------------------------
This is expected:
SomeBase::SomeDerived::SomeFunction(const std::vector< int >& in_= somevector,
            &nb= sp;            =            const std::vec= tor< int >& in_someothervector,
            &nb= sp;            =            const glm::vec= 3 in_aglmvector,
            &nb= sp;            =            const glm::vec= 3 in_someotherglmvector,
            &nb= sp;            =            const int in_s= omeint,
            &nb= sp;            =            const int in_s= omeotherint,
            &nb= sp;            =            const float in= _somefloat,
            &nb= sp;            =            std::vector<= ; int >& in_someints)
  : somevector(in_somevector)
  , someint(in_someint) {
}
----------------------------------------------------
The failed indentation seems to be related to the length of the
function header, though I did not do extensive testing.
The bug could be reproduced on at least 1 other machine.
I know this probably has low priority, but it's driving me insane, hope
it can be fixed easily :)

Thanks for a great piece of software!
####################################################



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.11501000<= br> System Description:    Ubuntu 14.04.2 LTS

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'<= br>  '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/= lib'
 '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info'
 '--mandir=3D/usr/share/man' '--with-pop=3Dyes'
 '--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/em= acs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/s= ite-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes'
 '--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars'
 'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O2 -fstack-protector  --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -Wal= l'
 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'
 'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2''

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=3Dibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: C++/l

Minor modes in effect:
  workgroups-mode: t
  global-ede-mode: t
  ede-minor-mode: t
  global-semanticdb-minor-mode: t
  global-semantic-idle-scheduler-mode: t
  semantic-idle-scheduler-mode: t
  semantic-mode: t
  tooltip-mode: t
  mouse-wheel-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t
  hs-minor-mode: t

Recent input:
<end> <down> <down> <tab> <left> <backspac= e> <backspace>
<backspace> <backspace> s o m e f l o a t <tab> <tab&g= t;
<down> <tab> <down> <tab> <down> <tab> = <down> <tab>
<up> <tab> <up> <tab> <up> <up> <dow= n> <end> <up> <up>
<up> <up> <up> <up> <end> <up> <left= > <left> <C-S-left>
<delete> s o m e w <backspace> v e c t o r <down> <lef= t>
<C-S-left> <delete> s o e <backspace> m e o t h e r
v e c t o r <tab> <down> <tab> <C-left> y e t a n o=
t h <C-S-left> <delete> a g l m <delete> <delete> &= lt;delete>
<delete> <down> <down> <up> <right> <right= > <right>
<right> <right> g l m <tab> <down> <down> <= ;down> <down>
<down> <tab> <down> <tab> <down> <tab> = <up> <up> <up>
<up> <up> <up> <tab> <C-right> <C-right>= ; <C-right>
<C-right> <backspace> <backspace> <backspace> <b= ackspace>
<backspace> <backspace> <backspace> s e <backspace>=
o m e i n t <tab> <tab> <down> <backspace> <back= space>
<backspace> <backspace> <backspace> <backspace> <= ;backspace>
s o m e i n t <tab> <tab> <backspace> <backspace> &= lt;backspace>
<backspace> e o t h e r i n t <tab> <tab> <down> &l= t;tab>
<down> <tab> <down> <C-left> <C-left> <C-l= eft> <delete>
<delete> <delete> <delete> <delete> <delete> = s o m
e v e c t o r <right> <right> <right> <right> <C= -S-right>
<delete> s o m e v e c t o r <tab> <tab> <down> <= ;tab>
<tab> <right> <C-right> <C-S-left> <delete> s= o m e
i n t <C-right> <right> <C-S-right> <delete> s o m =
e n t i <backspace> <backspace> <backspace> i n t <tab= >
<tab> <up> <tab> <down> <tab> <up> <= up> <up> <up> <up>
<up> <up> <up> <up> <home> <S-down> <= ;S-down> <S-down>
<S-down> <S-down> <S-down> <S-down> <S-down> = <S-down>
<S-down> <S-down> <S-delete> <delete> <help-echo= > <down-mouse-1>
<mouse-1> M-x r e p <tab> o r <tab> <return>

Recent messages:
Auto-saving...done
Mark set [5 times]
Auto-saving...done
Mark set [5 times]
To Remove Middle Tag: (Somefunction)
Mark set [2 times]
Parsing raycast.cpp (LL)...done
Auto-saving...
Making completion list...
byte-code: Beginning of buffer [2 times]

Load-path shadows:
~/.emacs.d/lisp/cmake-mode hides /usr/share/emacs24/site-lisp/cmake-data/cm= ake-mode
~/.emacs.d/lisp/asy-mode hides /usr/share/emacs/site-lisp/asy-mode
~/.emacs.d/lisp/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-= lisp/debian-startup
/usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emac= s/24.3/lisp/language/thai-word

Features:
(shadow sort gnus-util mail-extr emacsbug message 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 cuda-mode cl-macs help-fns rect vc-hg misearch
multi-isearch vc-git semantic/edit semantic/tag-write vc-dispatcher
vc-svn semantic/tag-file ede/linux ede/make semantic/db-file data-debug
ring cedet-files semantic/bovine/c semantic/decorate/include
semantic/decorate/mode semantic/decorate pulse hideif semantic/db-find
semantic/db-ref semantic/bovine/c-by semantic/lex-spp
semantic/bovine/gcc semantic/dep semantic/bovine semantic/analyze
semantic/sort semantic/scope semantic/analyze/fcn hideshow cc-langs
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs help-mode cmake-mode thingatpt workgroups cl cl-lib
edmacro kmacro ede/cpp-root ede/emacs ede/speedbar ede/files ede
ede/base ede/auto ede/source eieio-speedbar speedbar sb-image dframe
eieio-custom wid-edit semantic/db-mode semantic/db gv eieio-base
semantic/idle semantic/format ezimage semantic/tag-ls semantic/find
semantic/ctxt semantic/util-modes easymenu semantic/util semantic
semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp
byte-compile cconv mode-local cedet iso-transl emacs-goodies-el
emacs-goodies-custom emacs-goodies-loaddefs easy-mmode 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)

--_000_143583855805136914visusunistuttgartde_-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 19:13:04 2021 Received: (at 20963) by debbugs.gnu.org; 26 May 2021 23:13:04 +0000 Received: from localhost ([127.0.0.1]:50280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lm2i0-0007Fo-40 for submit@debbugs.gnu.org; Wed, 26 May 2021 19:13:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lm2hy-0007FH-B4 for 20963@debbugs.gnu.org; Wed, 26 May 2021 19:13:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BEHInvIFIY9ObT9g8/xThstXfV6sz8djRZEAws4sBeY=; b=Ps6LVqpM5OBtc5cW6RA/30ZCbs afLX6GHMlbOPPxHcmckc05bosG4mSInn07nQ8+SHd94D9fgfq9kpzXmMGQaiRdADZR6QXIL9UyyPD qATC8gkUUtfj0+I63ZTsJgiCUFtWpQC9mhIoQx8gZ3bzc2QAKZoWp9EXj9ASYKXnogRU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm2hq-0004Sj-0m; Thu, 27 May 2021 01:12:56 +0200 From: Lars Ingebrigtsen To: Oliver Fernandes Subject: Re: bug#20963: C++ mode indentation of initializers References: <1435838558051.36914@visus.uni-stuttgart.de> X-Now-Playing: James Burton's _Fabriclive 96 Mixed by Skream_: "Sounds Of A Different Colour (Kincaid & =?utf-8?Q?Sin=C3=A0l's?= Remix)" Date: Thu, 27 May 2021 01:12:53 +0200 In-Reply-To: <1435838558051.36914@visus.uni-stuttgart.de> (Oliver Fernandes's message of "Thu, 2 Jul 2015 12:03:05 +0000") Message-ID: <87cztd6qdm.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Oliver Fernandes writes: > This happens: > SomeBase::SomeDerived::SomeFunction(const std::vector< int >& in_somevector, > const std::vector< int >& in_someothervector, > const glm::vec3 in_aglmvector, > const glm::vec3 in_som [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20963 Cc: 20963@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: -1.0 (-) Oliver Fernandes writes: > This happens: > SomeBase::SomeDerived::SomeFunction(const std::vector< int >& in_somevector, > const std::vector< int >& in_someothervector, > const glm::vec3 in_aglmvector, > const glm::vec3 in_someotherglmvector, > const int in_someint, > const int in_someotherint, > const float in_somefloat, > std::vector< int >& in_someints) > : somevector(in_somevector) > , someint(in_someint) { > } > ---------------------------------------------------- > This is expected: > SomeBase::SomeDerived::SomeFunction(const std::vector< int >& in_somevector, > const std::vector< int >& in_someothervector, > const glm::vec3 in_aglmvector, > const glm::vec3 in_someotherglmvector, > const int in_someint, > const int in_someotherint, > const float in_somefloat, > std::vector< int >& in_someints) > : somevector(in_somevector) > , someint(in_someint) { > } (I'm going through old bug reports that unfortunately got no response at the time.) I'm unable to reproduce the problem in Emacs 28 (i.e., it indents the way you were expecting now), so I'm going to go ahead and guess that this has been fixed in the years since it was reported, and I'm closing this bug report. If this is still a problem, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 19:13:10 2021 Received: (at control) by debbugs.gnu.org; 26 May 2021 23:13:10 +0000 Received: from localhost ([127.0.0.1]:50283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lm2i6-0007GA-Bz for submit@debbugs.gnu.org; Wed, 26 May 2021 19:13:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lm2i4-0007Fn-EY for control@debbugs.gnu.org; Wed, 26 May 2021 19:13:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BMGx+PGJZAVogX5dGgxhbTY/uF8keNaL7xKBJPNXuns=; b=JaTItC/P4blwiA66TTJ55lUxCv q/ALNtadr2LxkNnvFPGRxaYc+Y6gdgiy5RM2eQ8WE2Wcxlt+xZA7i5P+YoeKdy7P7S969rTKc6p7k 4Tx/jVMcGX9CeE9IS4qD6+c4/2jBsEY7eCBy0E/J7e8YaF2TFZl4mz4DegD8cQxlVxCE=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm2hx-0004Sr-3g for control@debbugs.gnu.org; Thu, 27 May 2021 01:13:02 +0200 Date: Thu, 27 May 2021 01:13:00 +0200 Message-Id: <87bl8x6qdf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #20963 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 20963 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) close 20963 quit From unknown Mon Jun 23 18:27:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Jun 2021 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator