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

From: Alan Mackenzie <[email-masked]>
Date: Sat, 12 Nov 2022 15:24:09 +0000

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.

> Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu)
>  of 2022-11-12
> Package: CC Mode 5.35.2 (C/*l)
> Buffer Style: GNU
> c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-string-delim gen-comment-delim syntax-properties category-properties 1-bit)

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).