unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19669: 25.0.50; c-mode: incorrect fontification of simple enums
@ 2015-01-23 23:36 Dima Kogan
       [not found] ` <handler.19669.B.14220562124798.ack@debbugs.gnu.org>
  2015-02-01 17:40 ` bug#19669: 25.0.50; c-mode: incorrect fontification of simple enums Alan Mackenzie
  0 siblings, 2 replies; 7+ messages in thread
From: Dima Kogan @ 2015-01-23 23:36 UTC (permalink / raw)
  To: 19669

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

Hi. I'm running a very recent build of emacs from git revision 253d44b
(2015/01/08). I'm loading a very simple C file that has some enums
defined (attached). The enum elements all should have been rendered with

 font-lock-variable-name-face

However at startup with

 emacs -Q -nw

only some of the elements get this face; many have just the default
face. Pressing M-x changes things: some elements actually lose the
correct face. In general, using emacs tends to change what is or isn't
rendered properly. I'm attaching screenshots of the state at startup and
after M-x.

This is 100% reproducible on my end.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: db.h --]
[-- Type: text/x-chdr, Size: 630 bytes --]

enum xxx_xxxxxxxxxx_x
    {XXX_XXXX_XXXX_XXXXX_XXXXX,
     XXX_XXXX_XXXX_XXXXX_XXXXX,
     XXX_XXXX_XXXXXX_XXXXXXXX_XXXXXXX,
     XXX_XXXX_XXXXXX_XXXXXXXX_XXXXXXX,
     XXX_XXXX_XXXX_XXXXXXXX,
     XXXXXX_XXXXXXX_XXXX_XXXXXXXX,
     XXXXX_XXXXXX_XXXX_XXXXXXXX,
     XXX_XXXXXXX,
     XXX_XXX_XXXXXXXX,
     XXX_XXX_XXX_XXXXXXXXX,
     XXXXXX_XXX_XXXXXXX,
     X_XXXXXXXXXX};

enum xxx_xxxx_xxxxxxxxxx_x
    {XXX_XXXXXX_XXXX_XXX,
     XXX_XXXXXX_XXXX_XX,
     XXX_XXXXXXXX_XXXX_XXX,
     XXX_XXXX_XXXXXXX,
     XXX_XX_XXXXX_XXXX_XXXXXXX,
     XXXXXX_XXXXXX_XXXX_XXXXXXXX,
     XXX_XXXX_XXXXXXX,

     // xxx
     XXXXXX_XXXXXXXX};

[-- Attachment #3: startup.png --]
[-- Type: image/png, Size: 2660 bytes --]

[-- Attachment #4: Meta-x.png --]
[-- Type: image/png, Size: 2330 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-01 21:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23 23:36 bug#19669: 25.0.50; c-mode: incorrect fontification of simple enums Dima Kogan
     [not found] ` <handler.19669.B.14220562124798.ack@debbugs.gnu.org>
2015-01-24  5:29   ` bug#19669: Acknowledgement (25.0.50; c-mode: incorrect fontification of simple enums) Dima Kogan
2015-01-24 15:27     ` Alan Mackenzie
2015-02-01 21:27       ` Alan Mackenzie
2015-02-01 17:40 ` bug#19669: 25.0.50; c-mode: incorrect fontification of simple enums Alan Mackenzie
2015-02-01 20:13   ` Dima Kogan
2015-02-01 21:58     ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).