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#56841: Emacs-28 C Mode: Fontification errors when arglist closing ) is on next line Date: Sat, 30 Jul 2022 17:14:43 +0300 Message-ID: <83a68q6624.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29372"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56841@debbugs.gnu.org, sacks@ucar.edu To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 30 16:16:19 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 1oHnGM-0007Qu-Rm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 16:16:19 +0200 Original-Received: from localhost ([::1]:36064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHnGL-0006rT-9D for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 10:16:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHnG7-0006rK-6H for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 10:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHnG5-0002VS-QW for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 10:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHnG5-0007XW-Ml for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 10:16: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: Sat, 30 Jul 2022 14:16:01 +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.165919050421350 (code B ref 56841); Sat, 30 Jul 2022 14:16:01 +0000 Original-Received: (at 56841) by debbugs.gnu.org; 30 Jul 2022 14:15:04 +0000 Original-Received: from localhost ([127.0.0.1]:35544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHnFA-0005Xl-Ad for submit@debbugs.gnu.org; Sat, 30 Jul 2022 10:15:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHnF6-0005Mi-J3 for 56841@debbugs.gnu.org; Sat, 30 Jul 2022 10:15:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHnEz-0002GG-KP; Sat, 30 Jul 2022 10:14:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6GYr6n/yzvKAR3Y84a1AajdvtfDBSheDapwZEvAkG78=; b=N+6htVGfsbLg tbNzRuVfLOcq1j/tKCaPe8RwU86fb04NeT73goxZkqguF8UzVwFUqa7pdJPIORPcx1AxWHfw0cow8 s2Q0vAsBN+jDMJ6F6z/IKqJy/T1ECJJKWOHuyRDJoVaECBwK8BsfhYGhRezVBufg00EsCGzTXVC45 q1xyH3DOOz44lZAw4Zr1wXumitlynOvETmQAGlXIyAKjv4dyR5Yypr8/Q3ZEmt+LRyR2sslOCtY2Z tWy9S2nAW9fgHVSMUk/R7ubpjonzoeuDA38VW3TbPC7OYgFW/bPeADvfNHItCE+35KppoLYNIaMnf KGBHJzAdD0QvP0n01gf4NA==; Original-Received: from [87.69.77.57] (port=4171 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 1oHnEz-0006wb-3l; Sat, 30 Jul 2022 10:14:53 -0400 In-Reply-To: (message from Alan Mackenzie on Sat, 30 Jul 2022 13:05:24 +0000) 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:238292 Archived-At: > 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?