From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "George O'Hara" Newsgroups: gmane.emacs.bugs Subject: bug#41284: 26.3; cc-mode: Incorrect font locking of static functions Date: Fri, 15 May 2020 12:15:42 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b4143405a5adef6a" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96449"; mail-complaints-to="usenet@ciao.gmane.io" To: 41284@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 13:39:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZYgK-000OtS-C4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 13:39:12 +0200 Original-Received: from localhost ([::1]:58006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZYgJ-0001N7-E6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 07:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZYgA-0001Lx-Uu for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 07:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZYgA-0000U1-Ln for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 07:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZYgA-0001Ue-Jo for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 07:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "George O'Hara" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 11:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41284 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15895427205682 (code B ref -1); Fri, 15 May 2020 11:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 May 2020 11:38:40 +0000 Original-Received: from localhost ([127.0.0.1]:36063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZYfn-0001TV-Qy for submit@debbugs.gnu.org; Fri, 15 May 2020 07:38:40 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZYJo-0007EF-BL for submit@debbugs.gnu.org; Fri, 15 May 2020 07:15:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZYJn-0005oc-Ha for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 07:15:56 -0400 Original-Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:32812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZYJm-0000bw-A3 for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 07:15:55 -0400 Original-Received: by mail-io1-xd2e.google.com with SMTP id k18so2310276ion.0 for ; Fri, 15 May 2020 04:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Y/Y8wjxYrRSLrolzaJOUXy0a8u90p8iHQ+U+KJdFAW0=; b=r9xVzPeoUhIT9INOC1juc4yFULsODPUSyZWNrHz95SPRiVO5UV55ECDRkm31MEUCDq CDs3cByxCwM+0oueL9+vv5FZOpg1nklUmStB5MJhJujD50uzvfiI1FW2BdMs0Wn7yY2G 1jtIFlNLN8uwjGdGtRCaoNBvAEUi0/n7frTwnsnqfANFBT9oeu+jv9CK70h0X64qhqmU 12GJ9CcICbcNBTkO9JWXbH62hHNQfCRwQx6Dl9HxclDJ6bynLvD/4pKLqk2G3FME84j4 jf7MF6g7roFzt+ggB/qNwMF1TWM2t4IoA9fQ8GlICSixjeuDMwzJto3pHnhwlyLx79Fk HuOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Y/Y8wjxYrRSLrolzaJOUXy0a8u90p8iHQ+U+KJdFAW0=; b=TS7swPjrK6Y7PKcErAL0p9jIsxWtVO98hej/Qz7IHaXBHg/sRdrgY2aMevHKS/G0mk TETNPPXL7expcvlS2dM6jc+h2IESwtCWYJGReALUPYYORF4mKxijDLt6h7OIGFsAWNVX zdZRUyLHxGOQRE3QzMzo+KtFMcLBGd/ZJ8X3lE+rd6oChPNzrBmNfCXUixxlAUFrr/Pm DEA3aceWva7lX54h6pUIJ37Okb+IrT0ERJ9kszkJej8A5gY7RLaizi+1yxS6EJthlE/J GGxCbggQ3PXVyhq/luvVmvx7xpEaQXdwDJTAThdakP0IZpOZAbL/3mEKeqXRMCnpAZHB pNkg== X-Gm-Message-State: AOAM530JLg1X1APM03pjMTFGrHAu7gtJjFNpoQrZl2KM6IBigXD9+vl8 nAVZE3nSRYTUa4zIJdUSvNgTHjcC9bqs6SS+nuTqixE+ X-Google-Smtp-Source: ABdhPJx1uXJvGqmXkUC28ZBBFebuG/s/o0AD2D/LPOCiX2ofgGNLsstqTZZEBGStlHwaV9csHsboEvhtW8/4NX4TpXU= X-Received: by 2002:a02:7a12:: with SMTP id a18mr2728761jac.49.1589541353033; Fri, 15 May 2020 04:15:53 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2e; envelope-from=georgeohara92@gmail.com; helo=mail-io1-xd2e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 May 2020 07:38:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180316 Archived-At: --000000000000b4143405a5adef6a Content-Type: text/plain; charset="UTF-8" Hi, >From 'emacs -Q', C-x C-f and create a buffer called 'test.c'. In this buffer, type: static int some_function(); int static another_function(); some_function is not highlighted, while another_function is. I would expect both to be highlighted. Note that this also happens with C++. In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2020-05-13 built on gohara-t450s Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Linux Mint 19.3 Tricia Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2 Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 97752 8020) (symbols 48 20379 1) (miscs 40 84 118) (strings 32 28409 1537) (string-bytes 1 746781) (vectors 16 14596) (vector-slots 8 505938 8384) (floats 8 50 68) (intervals 56 246 4) (buffers 992 13)) --000000000000b4143405a5adef6a Content-Type: text/html; charset="UTF-8"
Hi,

>From 'emacs -Q', C-x C-f and create a buffer called 'test.c'.
In this buffer, type:

static int some_function();
int static another_function();

some_function is not highlighted, while another_function is.
I would expect both to be highlighted.
Note that this also happens with C++.


In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
of 2020-05-13 built on gohara-t450s
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Linux Mint 19.3 Tricia

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LCMS2

Important settings:
value of $LANG: en_GB.UTF-8
locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 97752 8020)
(symbols 48 20379 1)
(miscs 40 84 118)
(strings 32 28409 1537)
(string-bytes 1 746781)
(vectors 16 14596)
(vector-slots 8 505938 8384)
(floats 8 50 68)
(intervals 56 246 4)
(buffers 992 13))
--000000000000b4143405a5adef6a--