From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#56841: Emacs-28 C Mode: Fontification errors when arglist closing ) is on next line Date: Sat, 30 Jul 2022 14:27:53 +0000 Message-ID: References: <83a68q6624.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9536"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56841@debbugs.gnu.org, sacks@ucar.edu, acm@muc.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 30 16:29:22 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 1oHnT0-0002JY-8F for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 16:29:22 +0200 Original-Received: from localhost ([::1]:37852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHnSy-0000ap-QX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 10:29:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHnSi-0000aJ-Bm for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 10:29:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHnSg-0004ZR-CP for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 10:29:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHnSg-0007tU-5M for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 10:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2022 14:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56841 X-GNU-PR-Package: emacs Original-Received: via spool by 56841-submit@debbugs.gnu.org id=B56841.165919128430262 (code B ref 56841); Sat, 30 Jul 2022 14:29:02 +0000 Original-Received: (at 56841) by debbugs.gnu.org; 30 Jul 2022 14:28:04 +0000 Original-Received: from localhost ([127.0.0.1]:35558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHnRk-0007s2-BY for submit@debbugs.gnu.org; Sat, 30 Jul 2022 10:28:04 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:10578 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1oHnRh-0007rT-0t for 56841@debbugs.gnu.org; Sat, 30 Jul 2022 10:28:02 -0400 Original-Received: (qmail 71838 invoked by uid 3782); 30 Jul 2022 14:27:54 -0000 Original-Received: from acm.muc.de (p2e5d52c1.dip0.t-ipconnect.de [46.93.82.193]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 30 Jul 2022 16:27:53 +0200 Original-Received: (qmail 5346 invoked by uid 1000); 30 Jul 2022 14:27:53 -0000 Content-Disposition: inline In-Reply-To: <83a68q6624.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:238295 Archived-At: Hello, Eli. On Sat, Jul 30, 2022 at 17:14:43 +0300, Eli Zaretskii wrote: > > Cc: Bill Sacks > > Date: Sat, 30 Jul 2022 13:05:24 +0000 > > From: Alan Mackenzie > > 1. Start emacs -Q. > > 2. Insert the following file in C Mode: > > void myfunc( > > ) { > > } > > 3. In line 2 (the first blank line) type "int somevar". > > 4. Note that somevar is not fontified. This is a bug, given that the > > arglist to myfunc is terminated with a ) on line 3. > > 5. Do something (e.g. typing M-x) to cause a redisplay. somevar gets > > its correct face. > > 6. Note that any insertion or deletion in L2 causes somevar to lose its > > fontification. This is a bug. > > 7. (After 6). Move point onto somevar and do C-u C-x =. This shows > > that the face text property is set on the character despite the face > > not appearing on the screen. > Are you saying this is not a bug in CC mode but somewhere else? Or > are you saying that you don't yet know what is the culprit and will > investigate? It is most definitely a bug in CC Mode, and I'm looking at it at the moment. My feeling right now is that the fix will be too involved to go into the release branch. -- Alan Mackenzie (Nuremberg, Germany).