Subject: 24.2; font-lock doesn't work correctly in c++-mode

From: [email-masked] (reaper.spring)
Date: Mon, 01 Oct 2012 14:14:08 +0800

for emacs 24.1 and 24.2，some text color disappear when editing cpp files, for example
http://1804.img.pp.sohu.com.cn/images/2012/9/30/20/28/e37917885_13adb047562g2.gif
start emacs by 'emacs -Q' and testing on Win7 Ultimate

In GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601)
 of 2012-08-29 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.6) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: zh_CN
  value of $XMODIFIERS: nil
  locale-coding-system: cp936
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  global-linum-mode: t
  linum-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-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

Recent input:
M-x r e p r o <tab> <backspace> <backspace> <backspace> 
o r <tab> <backspace> <backspace> p o r <tab> <ret
urn>

Recent messages:
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-dirac.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-example.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-gruber-darker.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-hober2.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-library.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-molokai.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-sanityinc.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-subdued.el (source)...done
Loading c:/Users/Administrator/AppData/Roaming/.emacs.d/__plugins/color-theme/themes/color-theme-tangotango.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

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 color-theme-tangotango color-theme-subdued
color-theme-sanityinc color-theme-molokai color-theme-hober2
color-theme-gruber-darker color-theme wid-edit cl sendmail regexp-opt
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils reporter
easymenu edmacro kmacro linum paren time avoid time-date china-util
tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table
ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe 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 files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty emacs)