GNU bug report logs - #20383
25.0.50; c-mode: incorrect fontification of function arguments

Previous Next

Packages: cc-mode, emacs;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Mon, 20 Apr 2015 16:34:02 UTC

Severity: normal

Tags: confirmed

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dima Kogan <dima <at> secretsauce.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; c-mode: incorrect fontification of function arguments
Date: Mon, 20 Apr 2015 09:34:16 -0700
[Message part 1 (text/plain, inline)]
Hi. This is very similar to

 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19669

but with different input.

I'm running an emacs built from 65ac8bc (master branch as of 2015/4/18)

Recipe:

1. emacs -nw -Q tst.c (open attached source)
2. C-n C-o //         (navigate to next line, start a new comment)

At this point, the buffer looks like the attached image. Note that at
step 2, the coloration of the 3rd and 5th arguments changed. This is
wrong. In normal use I see this popping up in response to various
inputs, not just starting a comment in some arbitrary place.

Thanks

[tst.c (text/x-csrc, inline)]
// X xxx xxx x 2xx-xxxxx xxxx  xxx xxxx X xx, X xxx'x
void xxxx_xxxxxx_xxx_xxxxx( // xxxxx, xxxxxx
                            // xxxxxxx xxxxx xx xxxxx
                            struct xxxxx_x* x,

                            // xxxxxx
                            long xxxx_xxxx,

                            // xxxxxxxxx xxxx xxxxxx xx xxxxxxx
                            T    (*x )(const struct xxxxx_x* x),
                            void (*x) (      struct xxxxx_x* xxxxxx,
                                       const struct xxxxx_x* x),
                            T (*x_xxx_x) (      struct xxxxx_x* xxxxxx,
                                          const struct xxxxx_x* x),
                            void (*Xx)(      struct xxxxx_x* xxxxxx,
                                       const struct xxxxx_x* x))
{
}
[bad_fontification.png (image/png, attachment)]

This bug report was last modified 3 years and 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.