From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: richard Newsgroups: gmane.emacs.bugs Subject: bug#32808: 25.2; Indentation after initializer list C++ Date: Sat, 22 Sep 2018 11:54:19 -0500 Message-ID: <87efdl5v7o.fsf@ubundoo.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537636061 19726 195.159.176.226 (22 Sep 2018 17:07:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2018 17:07:41 +0000 (UTC) To: 32808@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 19:07:37 2018 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 1g3lNZ-00057f-0K for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2018 19:07:37 +0200 Original-Received: from localhost ([::1]:36085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3lPf-0003vs-KA for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2018 13:09:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3lP4-0003ff-8V for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2018 13:09:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3lP0-0003O7-J4 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2018 13:09:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3lOw-0003M3-2X for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2018 13:09:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g3lOv-0007QL-Su for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2018 13:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2018 17:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32808 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.153763610528484 (code B ref -1); Sat, 22 Sep 2018 17:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Sep 2018 17:08:25 +0000 Original-Received: from localhost ([127.0.0.1]:49818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3lOK-0007PL-ON for submit@debbugs.gnu.org; Sat, 22 Sep 2018 13:08:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3lJi-0007I7-Cy for submit@debbugs.gnu.org; Sat, 22 Sep 2018 13:03:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3lJc-0005IL-3e for submit@debbugs.gnu.org; Sat, 22 Sep 2018 13:03:33 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g3lJb-0005Ho-UG for submit@debbugs.gnu.org; Sat, 22 Sep 2018 13:03:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3lJX-0001c0-PC for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2018 13:03:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3lB6-00070p-0R for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2018 12:54:48 -0400 Original-Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]:39164) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3lB5-00070Y-Q2 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2018 12:54:43 -0400 Original-Received: by mail-it1-x133.google.com with SMTP id h1-v6so5717657itj.4 for ; Sat, 22 Sep 2018 09:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=fz3J/LtVJpUUv6Y+Ih8/MYaLDuRDciuYiuTpc/hk2HI=; b=nMn7tpofQ0aUAJAcO3YaV2WE6DjVoS2dSVL6+HyCoxAzz1jZ8VBuibrRI5Tbn/nzAG 0Krrc/GjncKRxfMIor4g9thoJVGf/Bq0Y/ch8KICAsa8ElnZufUtix1IkJzsnJt5ZPNd 6e6HIWyLVRTnmCHbzx0rmQAfRytGtGJJm+m7wYqxPVa9efR7zWfA64BF4bspL9jCiABA oks/RpOc8L7Bo9FtTSmBPIjQvKnRD9b3VUe0ZOwgv7FRTfcufNRaZKVW7AEYw5WXUsJ5 U+seCJXzlsldzXLlsxGRpAGBvejlVAl9v3J6A41QCJ6qY8gxrnkpdWhb6KfdgWms76S0 5X2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=fz3J/LtVJpUUv6Y+Ih8/MYaLDuRDciuYiuTpc/hk2HI=; b=cRbxDdgzyj5EOALoUXjkcVixcWhlBbCLVeuWkWpImvU9wyh4XjXPSb+qqFbLxGKCwT FetG5LU8LOSj6Ko1YNFrY68D0cNtUdbv4oFHOFVJBUKUH+/FFIHSkbT8BGbh5WOfJdFA LuIPk7kbbViJM8YGVG+MnubOOgDLXlopQplTjAZrVrfrd1IlRc89iKICaX21UrIz3A8/ NdbOJDMDxX7Iui7bJKvIJPqkKKMlsYDMlMIUXKnEz0ph/Cihv6QNeTIKSk1p/4B0BENK xMMQ/jnLvJM9mmfLsSuVRe1oKMXX+amWQ5g5AAOm/pnQg3CHrUp6yKCMnua78AzVzBhn rbyg== X-Gm-Message-State: ABuFfohCU3W5M7gYaMsduU+k/3qABy2FRV6hoGMS4N0cHWQQHkbrfnUi FqjWmh9OIqOrPfL7IsY9a5KFW278/5Q= X-Google-Smtp-Source: ANB0VdbEvD7SSEvtwOuYVLDPC+JXYrEY7A2m16R0FxB49+KMfe6YbXROJDISH6I9i2Tc3ws75LjQjg== X-Received: by 2002:a24:400b:: with SMTP id n11-v6mr2289647ita.2.1537635282446; Sat, 22 Sep 2018 09:54:42 -0700 (PDT) Original-Received: from ubundoo (047-012-023-132.res.spectrum.com. [47.12.23.132]) by smtp.gmail.com with ESMTPSA id n140-v6sm5559623itb.37.2018.09.22.09.54.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Sep 2018 09:54:41 -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: Sat, 22 Sep 2018 13:08:24 -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:150550 Archived-At: While creating a constructor for my class, I have a multiline initializer list. For the constructor, the indentation matches that of the list. Here's an example: Test::Test(const std::string &a) : a{a}, b{0}, c{"..."}, d{""} { /*notice the indentation*/ } In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian built on lgw01-amd64-050 Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 System Description: Ubuntu 17.10 Configured using: 'configure --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/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --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/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-jYekUr/emacs25-25.2+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C++/l Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-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 messages: Loading /usr/share/emacs25/site-lisp/haskell-mode/haskell-mode-autoloads.el (source)...done Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...done Loading /etc/emacs/site-start.d/50irony-mode.el (source)...done Loading /etc/emacs/site-start.d/50php-elisp.el (source)...done Loading /etc/emacs/site-start.d/60agda-stdlib.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. funcall-interactively: Beginning of buffer Mark set [4 times] Auto-saving...done Making completion list... Load-path shadows: /usr/share/emacs25/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/25.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils vc-git diff-mode easy-mmode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs wheatgrass-theme finder-inf go-mode-autoloads package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib haskell-mode-autoloads devhelp time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 122586 4894) (symbols 48 23758 0) (miscs 40 66 229) (strings 32 25836 5164) (string-bytes 1 875386) (vectors 16 16999) (vector-slots 8 490112 3548) (floats 8 203 48) (intervals 56 663 23) (buffers 976 19))