From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56818: 28.1; c-mode font-lock issues in Emacs 28 Date: Fri, 29 Jul 2022 08:56:21 +0300 Message-ID: <83edy48nsq.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25782"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56818@debbugs.gnu.org To: Bill Sacks , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 29 07:57:24 2022 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 1oHJ00-0006Y9-Gp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 07:57:24 +0200 Original-Received: from localhost ([::1]:40696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHIzz-0000jT-Hp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 01:57:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHIzf-0000ic-Ck for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 01:57:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHIzd-0003ZS-S9 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 01:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHIzd-0008Do-Id for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 01:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jul 2022 05:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56818 X-GNU-PR-Package: emacs Original-Received: via spool by 56818-submit@debbugs.gnu.org id=B56818.165907418531503 (code B ref 56818); Fri, 29 Jul 2022 05:57:01 +0000 Original-Received: (at 56818) by debbugs.gnu.org; 29 Jul 2022 05:56:25 +0000 Original-Received: from localhost ([127.0.0.1]:59751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHIz3-0008C1-Bh for submit@debbugs.gnu.org; Fri, 29 Jul 2022 01:56:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHIz1-0008Be-VA for 56818@debbugs.gnu.org; Fri, 29 Jul 2022 01:56:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHIyv-0003Ru-N7; Fri, 29 Jul 2022 01:56:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=sjZcGzTY7K+Q3PrqzA24ulSzawU0V/MWiRkAUDxlwpI=; b=ow53c+YpPAOOPDQruBct DSoZMA9Cvkw9BICadOh1jV7Rr/JZWHCpz1md2ETRNWO1nsOIg0hGwJYMwZqZzl2Lt0FF3+PoLeyyB 2dphVUZlu4DutfsEbBi1T+ZaWxnwsq1LmD07G6X0wVUK1Xj+I9c2GA16jmMig6xe4c5OTeUuhB89p WBunyvLgMzGjsImINA7cN+LGKzkS+govh77bUvUIPWTKIF9y7QVJySFLtT5SKkJTVrX48CAYrjOWk 7um4fMdKIFJY76wOCzJ5f4J3MkRjEwrukD76I8/o77IvivNEdbwrHLfo0cSo1fhRqafoNFPlcrUjz pEI5a0NZ8P6mQA==; Original-Received: from [87.69.77.57] (port=4310 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHIyo-0006BR-Fk; Fri, 29 Jul 2022 01:56:13 -0400 In-Reply-To: (message from Bill Sacks on Thu, 28 Jul 2022 14:32:09 -0600) 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:238138 Archived-At: > From: Bill Sacks > Date: Thu, 28 Jul 2022 14:32:09 -0600 > > Starting with Emacs 28, I have been seeing font-lock issues when editing C and C++ code. The situation > where I see this the most (though I'm not sure if it's the only situation) is when I am writing a comment and > currently have a space at the end of the comment line: in this situation, the fontification of a variable name or > function name on the next line becomes broken until I type a non-space character to end the current line. > > The attached screen shots illustrate the problem: nospaces.png shows the correct fontification; > space_before_var.png and space_before_function.png show that variable and function names lose their > fontification when there is a space at the end of the previous comment line. Running M-x > font-lock-fontify-buffer temporarily fixes the issue. > > The problem occurs even when using emacs -Q. I have tried the latest emacs28 pretest and the latest > nightly build available from emacsformacosx (though with my customizations – NOT with emacs -Q) and > those also exhibit the problem. The latest emacs27 from emacsformacosx does NOT have this issue. Alan, this seems to be a regression in Emacs 28, so could you please look into it?