GNU bug report logs - #59215
CC Mode 5.35.2 (C/*l); x_io_error_quitter not fontified as such

Previous Next

Package: cc-mode;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Sat, 12 Nov 2022 13:00:02 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 59215 <at> debbugs.gnu.org, acm <at> muc.de
Subject: bug#59215: CC Mode 5.35.2 (C/*l); x_io_error_quitter not fontified as such
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).




This bug report was last modified 2 years and 187 days ago.

Previous Next


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