all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#20383: 25.0.50; c-mode: incorrect fontification of function arguments
@ 2015-04-20 16:34 Dima Kogan
  2020-12-03 11:36 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Dima Kogan @ 2015-04-20 16:34 UTC (permalink / raw)
  To: 20383

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

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: tst.c --]
[-- Type: text/x-csrc, Size: 825 bytes --]

// 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))
{
}

[-- Attachment #3: bad_fontification.png --]
[-- Type: image/png, Size: 2460 bytes --]

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

end of thread, other threads:[~2021-07-13 18:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 16:34 bug#20383: 25.0.50; c-mode: incorrect fontification of function arguments Dima Kogan
2020-12-03 11:36 ` Lars Ingebrigtsen
2021-07-13 18:02   ` Lars Ingebrigtsen

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.