From: Dima Kogan <dima@secretsauce.net>
To: 19669@debbugs.gnu.org
Subject: bug#19669: 25.0.50; c-mode: incorrect fontification of simple enums
Date: Fri, 23 Jan 2015 15:36:33 -0800 [thread overview]
Message-ID: <87a9196pdq.fsf@secretsauce.net> (raw)
[-- 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 --]
next reply other threads:[~2015-01-23 23:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 23:36 Dima Kogan [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9196pdq.fsf@secretsauce.net \
--to=dima@secretsauce.net \
--cc=19669@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.