[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23312: 25.0.92; C++: Incorrect indentation of enum values inside a c

From: Anders Lindgren
Subject: bug#23312: 25.0.92; C++: Incorrect indentation of enum values inside a class
Date: Tue, 19 Apr 2016 11:32:12 +0200

In C++ mode in Emacs 25.0.92, enums inside classes are incorrectly indented.

For example (emacs -Q):

class MyClass
  enum Id
      kBeta     // Incorrect indentation.

In Emacs 24.5, the "kAlpha" and "kBeta" were aligned, as expected.

    -- Anders Lindgren

In GNU Emacs (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:

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]

Load-path shadows:
None found.

(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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]