From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: gaetan.allaert@belgacom.net (=?UTF-8?Q?Ga=C3=A9tan?= Allaert) Newsgroups: gmane.emacs.bugs Subject: bug#30115: 25.1; cc-mode (C++) : bad indentation on function closing curly brackets Date: Sun, 14 Jan 2018 23:13:23 +0000 Message-ID: <87r2qsc9v0.fsf@deadstar.home.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515976108 27027 195.159.176.226 (15 Jan 2018 00:28:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2018 00:28:28 +0000 (UTC) To: 30115@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 15 01:28:24 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 1easdK-00068k-P6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 01:28:14 +0100 Original-Received: from localhost ([::1]:49745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1easfK-0006XF-HJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jan 2018 19:30:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1easf8-0006UR-3q for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 19:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1easf4-0004vh-TI for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 19:30:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1easf4-0004vO-QU for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 19:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1easf4-0005ql-Iu for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 19:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: gaetan.allaert@belgacom.net (=?UTF-8?Q?Ga=C3=A9tan?= Allaert) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jan 2018 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30115 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.151597615022403 (code B ref -1); Mon, 15 Jan 2018 00:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jan 2018 00:29:10 +0000 Original-Received: from localhost ([127.0.0.1]:56477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1easeD-0005pF-VF for submit@debbugs.gnu.org; Sun, 14 Jan 2018 19:29:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1earUl-0004Aq-PM for submit@debbugs.gnu.org; Sun, 14 Jan 2018 18:15:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1earUf-0005Gq-5x for submit@debbugs.gnu.org; Sun, 14 Jan 2018 18:15:14 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1earUf-0005Gb-2k for submit@debbugs.gnu.org; Sun, 14 Jan 2018 18:15:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1earUd-0003E4-GD for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 18:15:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1earUZ-0005As-3j for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 18:15:11 -0500 Original-Received: from smtp-out-3.talktalk.net ([62.24.135.67]:21097) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1earUY-00059f-Nn for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2018 18:15:07 -0500 Original-Received: from deadstar ([92.19.36.62]) by smtp.talktalk.net with SMTP id arUVeTuqjCbAZarUVeY6Jw; Sun, 14 Jan 2018 23:15:04 +0000 X-Originating-IP: [92.19.36.62] X-Spam: 0 X-OAuthority: v=2.2 cv=JvuBlIwC c=1 sm=1 tr=0 a=N5+SBwGB4EyPIOK9O3WKFg==:117 a=N5+SBwGB4EyPIOK9O3WKFg==:17 a=aR16PxjQAAAA:8 a=25AyJuR6OdVzTiwUCgsA:9 a=qYvUXXcDV_cI85pd:21 a=VnJ2qY-m3b7TOGHs:21 a=zbFvvTOBjyH4ze5LlUjX:22 X-CMAE-Envelope: MS4wfLJcEJ/RKZ+Mm/vYBpizQouoqOzjAt4OIQb3dIDd+XKqGwMzUpv5PAT8MIX+4NIyOxVAN5NoJrzTqBGGtUJQfpfZMDYEVPnbESZDg8iqSckn+FPqZOGJ AqylDHPxXz9wS0gOZDxq8Clmqb9zC+m0n+GxEBIxDRNGaA22FXUIwyjM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sun, 14 Jan 2018 19:29:08 -0500 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:142160 Archived-At: It is about an indentation issue in C++. The closing curly bracket at the end of the function is wrongly indented when: 1. at least one base_1 exists (the comma at the end of base_1 is required); 2. base_2 is the last call before the opening curly bracket of the function; 3. base_2 has only 1 argument that must be a symbol, not a literal or a string. Example: foo_good::foo_good (int arg_1, int arg_2) : base_1 (), base_2 (arg_1, arg_2) { } // good indentation foo_bad::foo_bad (int arg_1, int arg_2) : base_1 (), base_2 (arg_1) { } // bad identation Thanks to have a look at this issue. In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-15, modified by Debian built on trouble Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9.3 (stretch) 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.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --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.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-wN2qS3/emacs25-25.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: C++/l Minor modes in effect: show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-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 Recent messages: Mark set [2 times] Replaced 2 occurrences Saving file /home/allaert/bug.cpp... Wrote /home/allaert/bug.cpp (No changes need to be saved) [2 times] Making completion list... Quit Mark set Saving file /home/allaert/bug.cpp... Wrote /home/allaert/bug.cpp next-line: End of buffer Load-path shadows: /usr/share/emacs/25.1/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs25/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/25.1/site-lisp/slime/lib/ert hides /usr/share/emacs/25.1/lisp/emacs-lisp/ert /usr/share/emacs/25.1/site-lisp/slime/lib/ert-x hides /usr/share/emacs/25.1/lisp/emacs-lisp/ert-x 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 tabify dabbrev cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more thingatpt mc-cycle-cursors mc-edit-lines multiple-cursors-core advice rect solarized-theme solarized-definitions finder-inf package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv edmacro kmacro cl-loaddefs pcase cl-lib paren cus-start cus-load slime-autoloads haskell-mode-autoloads 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 231074 14250) (symbols 48 29159 1) (miscs 40 95 375) (strings 32 49655 7602) (string-bytes 1 1441279) (vectors 16 22232) (vector-slots 8 568868 6249) (floats 8 204 199) (intervals 56 481 133) (buffers 976 19))