bug#59215: CC Mode 5.35.2 (C/*l); x_io_error_quitter not fontified as such

Alan Mackenzie <[email protected]> Mon, 14 Nov 2022 10:09:10 +0000
Newsgroups gmane.emacs.cc-mode.general
Message-ID <Y3ITxoSr/XSQsIn6@ACM>
Hello, Po.

On Sun, Nov 13, 2022 at 08:28:40 +0800, Po Lu wrote:
> Alan Mackenzie <[email protected]> writes:

> > Hello, Po.

> > On Sat, Nov 12, 2022 at 20:59:19 +0800, Po Lu via CC-Mode-help wrote:
> >> Package: cc-mode

> >> Go to line 25895 of xterm.c in Emacs's source code.  Around that
> >> location, there should be:

> >> static int NO_INLINE
> >> x_io_error_quitter (Display *display)
> >> {
> >>   char buf[256];

> >>   snprintf (buf, sizeof buf, "Connection lost to X server '%s'",
> >> 	    DisplayString (display));
> >>   x_connection_closed (display, buf, true);

> >>   return 0;
> >> }

> >> There, "x_io_error_quitter" is not fontified as a function!
> >> Thanks.

> > All that is needed here is to define NO_INLINE as a "noise keyword" in
> > the C entry in .dir-locals.el.  I'll do this this afternoon/evening.

> Thanks, it works now.

Thanks again for the testing!  I'm closing this bug with this post.

-- 
Alan Mackenzie (Nuremberg, Germany).