From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#23312: 25.0.92; C++: Incorrect indentation of enum values inside a class Date: Tue, 19 Apr 2016 11:32:12 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11438ee8e41daa0530d32677 X-Trace: ger.gmane.org 1461058408 14793 80.91.229.3 (19 Apr 2016 09:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2016 09:33:28 +0000 (UTC) To: 23312@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 19 11:33:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1asS1y-0002NM-3l for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Apr 2016 11:33:14 +0200 Original-Received: from localhost ([::1]:54733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asS1s-0000xw-CB for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Apr 2016 05:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asS1n-0000ux-HO for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 05:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asS1m-0003Wg-0o for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 05:33:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asS1l-0003WV-UV for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 05:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1asS1l-0004qF-Py for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 05:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Apr 2016 09:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23312 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.146105834818531 (code B ref -1); Tue, 19 Apr 2016 09:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Apr 2016 09:32:28 +0000 Original-Received: from localhost ([127.0.0.1]:39924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asS1D-0004op-UX for submit@debbugs.gnu.org; Tue, 19 Apr 2016 05:32:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1asS1C-0004oV-L8 for submit@debbugs.gnu.org; Tue, 19 Apr 2016 05:32:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asS13-0002sS-6E for submit@debbugs.gnu.org; Tue, 19 Apr 2016 05:32:21 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asS13-0002sO-34 for submit@debbugs.gnu.org; Tue, 19 Apr 2016 05:32:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asS11-0008GZ-JM for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 05:32:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asS10-0002sE-BC for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 05:32:15 -0400 Original-Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]:33472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asS10-0002sA-1N for bug-gnu-emacs@gnu.org; Tue, 19 Apr 2016 05:32:14 -0400 Original-Received: by mail-vk0-x22a.google.com with SMTP id n62so12174832vkb.0 for ; Tue, 19 Apr 2016 02:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=oUrs6Xo6/nmTgk4RVRmTeQPRitHeTDgauCehvVqjGIE=; b=ooqmwkIpEiXg0nDpQb3oNZC0/GHOD/qrvaYuD+OkCwMQqpugOCpVvibivubzgFnr1P +wdNNGrIVr36s49aiisAlsz4Y0aKX16+pv/YptyLhydqc6gE0C7D2t1vJGy8b0+J6Tp/ gmHEsM7UJJUumyYat14fEtPY8kuPIR8cPtUieQTGDV4sxGX5g8h8Zy7UL0C2fX+t3Mbo LoMH++iwMNZBDsmglfKdTBHZ71wSfqMlrZihHngC7wdvDZGysoF9kuol7oC8oRS9t9PB bDbseTBETqdteaNdUtMRLSR0OepqZJ/aaX25SQMcJx7ZtRUWUMAdk87cE58FYVCqrZ// Ci8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=oUrs6Xo6/nmTgk4RVRmTeQPRitHeTDgauCehvVqjGIE=; b=HX5uu7bFwwQZuT9uQoAifBjevbo638oKc4tJ6dEgGtBkU1cmiOli0OIBCePL5ePw8A 1tJ4245lE8WqewDiOkfpgCIgTSf7ZOoD7AS9r+cl9tC5iEZFE3UwR3jWoAvd3mPbRbCk 6kS5QfmiP3K/9E9c8QCARFCrtCIITUJeiu+Bw5DK74QE45L+1bOHtxNdNH3PeEQIgf25 MLPE7c5YVTDr4BiQnW7U9C7ByfTY6VXm/KfhO0wCJaPYXicqKYtVPU2cPOFsJ8Q23nzS F9Lq3vZUcmXLbn1ZsPcRv7MYHiA2p4qxwkvxJeo025gdqANrj+2GlWo9T3bNLmzU6MwX mMRQ== X-Gm-Message-State: AOPr4FU79ISunkgf3GOnmtLS+FbTuqU1Uqn2b56ottIj/qp8mnOOMe1qbn6aroxmwbqJZvC0SJvfhn2eXDz07w== X-Received: by 10.31.54.134 with SMTP id d128mr891110vka.26.1461058332267; Tue, 19 Apr 2016 02:32:12 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Tue, 19 Apr 2016 02:32:12 -0700 (PDT) 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-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:116610 Archived-At: --001a11438ee8e41daa0530d32677 Content-Type: text/plain; charset=UTF-8 In C++ mode in Emacs 25.0.92, enums inside classes are incorrectly indented. For example (emacs -Q): class MyClass { public: enum Id { kAlpha, kBeta // Incorrect indentation. In Emacs 24.5, the "kAlpha" and "kBeta" were aligned, as expected. -- Anders Lindgren In GNU Emacs 25.0.92.1 (i686-w64-mingw32) of 2016-03-21 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --host=i686-w64-mingw32 --without-dbus --without-compress-install CFLAGS=-static' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: SVE locale-coding-system: cp1252 Major mode: C++/l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-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 messages: For information about GNU Emacs and the GNU system, type C-h C-a. foo3.cpp has auto save data; consider M-x recover-this-file Mark set previous-line: Beginning of buffer [3 times] Quit Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec epg epg-config 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 cl-extra help-mode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win 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 w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 108925 13058) (symbols 32 21629 0) (miscs 32 50 193) (strings 16 21243 4209) (string-bytes 1 701321) (vectors 8 14828) (vector-slots 4 458715 7672) (floats 8 165 57) (intervals 28 291 37) (buffers 520 13)) -- -- Disclaimer: Opinions expressed in this posting are strictly my own and not necessarily those of my employer. --001a11438ee8e41daa0530d32677 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In C++ mode in Emacs 25.0.92, enums inside classes ar= e incorrectly indented.

For example (emacs -Q):

class MyClass
{
public:
=C2=A0 enum Id
=C2=A0 {
=C2=A0 =C2=A0 kAlpha,
=C2=A0 =C2=A0 =C2=A0 kBeta =C2=A0 =C2=A0 // Incorrect indentation.<= /div>

In Emacs 24.5, the "kAlpha" and &q= uot;kBeta" were aligned, as expected.

=C2=A0 = =C2=A0 -- Anders Lindgren



In GNU Emacs 25.0.92.1 (i686-w64-mingw32)
=C2=A0of 2016-03-= 21 built on LAPHROAIG
Windowing system distributor 'Microsoft= Corp.', version 6.1.7601
Configured using:
=C2=A0&= #39;configure --host=3Di686-w64-mingw32 --without-dbus
=C2=A0--wi= thout-compress-install CFLAGS=3D-static'

Confi= gured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTL= S LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

Impor= tant settings:
=C2=A0 value of $LANG: SVE
=C2=A0 locale= -coding-system: cp1252

Major mode: C++/l

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t=
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t<= /div>
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mod= e: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compres= sion-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transien= t-mark-mode: t
=C2=A0 abbrev-mode: t

Rec= ent messages:
For information about GNU Emacs and the GNU system,= type C-h C-a.
foo3.cpp has auto save data; consider M-x recover-= this-file
Mark set
previous-line: Beginning of buffer [= 3 times]
Quit

Load-path shadows:
None found.

Features:
(shadow sort ma= il-extr emacsbug message dired format-spec rfc822 mml
mml-sec epg= epg-config gnus-util mm-decode mm-bodies mm-encode
mail-parse rf= c2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ie= tf-drums mm-util help-fns mail-prsvr mail-utils cl-extra
help-mod= e cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles
c= c-align cc-engine cc-vars cc-defs cl-loaddefs pcase cl-lib time-date
<= div>mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
t= abulated-list newcomment elisp-mode lisp-mode prog-mode register page
=
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock<= /div>
syntax facemenu font-core frame cl-generic cham georgian utf-8-la= ng
misc-lang vietnamese tibetan thai tai-viet lao korean japanese= eucjp-ms
cp51932 hebrew greek romanian slovak czech european eth= iopic indian
cyrillic chinese charscript case-table epa-hook jka-= cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice load= defs button faces
cus-face macroexp files text-properties overlay= sha1 md5 base64 format
env code-pages mule custom widget hashtab= le-print-readable backquote
w32notify w32 multi-tty make-network-= process emacs)

Memory information:
((con= ses 8 108925 13058)
=C2=A0(symbols 32 21629 0)
=C2=A0(m= iscs 32 50 193)
=C2=A0(strings 16 21243 4209)
=C2=A0(st= ring-bytes 1 701321)
=C2=A0(vectors 8 14828)
=C2=A0(vec= tor-slots 4 458715 7672)
=C2=A0(floats 8 165 57)
=C2=A0= (intervals 28 291 37)
=C2=A0(buffers 520 13))

--=C2=A0
--=C2=A0
Disclaimer: Opinions expressed = in this posting are strictly my own and
not necessarily those of = my employer.

--001a11438ee8e41daa0530d32677--