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 13:05:24 +0000 Message-ID: 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="30429"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Bill Sacks To: 56841@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 30 15:06:28 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 1oHmAm-0007iF-IZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 15:06:28 +0200 Original-Received: from localhost ([::1]:36616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHmAl-0007Zi-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 09:06:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHmAM-00074o-0G for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHmAL-0000WZ-O5 for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHmAL-0007L6-K8 for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:06:01 -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 13:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56841 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.165918633228164 (code B ref -1); Sat, 30 Jul 2022 13:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2022 13:05:32 +0000 Original-Received: from localhost ([127.0.0.1]:34297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHm9s-0007KC-GD for submit@debbugs.gnu.org; Sat, 30 Jul 2022 09:05:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHm9q-0007K5-VK for submit@debbugs.gnu.org; Sat, 30 Jul 2022 09:05:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHm9q-0006HH-QK for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:05:30 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:63998 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1oHm9o-0000ND-NP for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:05:30 -0400 Original-Received: (qmail 16615 invoked by uid 3782); 30 Jul 2022 13:05:25 -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 15:05:25 +0200 Original-Received: (qmail 5176 invoked by uid 1000); 30 Jul 2022 13:05:24 -0000 Content-Disposition: inline X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:238271 Archived-At: Hello, Emacs. This is (a version of) a bug reported by Bill Sacks in the correspondence for bug #56818. I am separating it from that bug, since it is a distinct bug, despite having similar symptoms. In Emacs-28: 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. -- Alan Mackenzie (Nuremberg, Germany).