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 21:11:10 +0300 Message-ID: <83czdn7ps1.fsf@gnu.org> References: <83edy48nsq.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34544"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sacks@ucar.edu, 56818@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 29 20:12:12 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 1oHUT5-0008nU-Kk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 20:12:11 +0200 Original-Received: from localhost ([::1]:52460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHUT4-0004y5-Kf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jul 2022 14:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHUSw-0004v2-71 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 14:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHUSv-0007Yr-TW for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 14:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHUSv-0005kZ-Pr for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2022 14:12: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 18:12: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.165911826622028 (code B ref 56818); Fri, 29 Jul 2022 18:12:01 +0000 Original-Received: (at 56818) by debbugs.gnu.org; 29 Jul 2022 18:11:06 +0000 Original-Received: from localhost ([127.0.0.1]:33414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHUS2-0005jC-5o for submit@debbugs.gnu.org; Fri, 29 Jul 2022 14:11:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHURz-0005ie-Mg for 56818@debbugs.gnu.org; Fri, 29 Jul 2022 14:11:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHURt-0007UR-OG; Fri, 29 Jul 2022 14:10:57 -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=+6S1Tpg7MnNnrP9ZQkIE4P5fJsjF2fGSruOiQISsWnY=; b=TQlWbMTr/GZ8 E2zlPi30hFw7uAPCshETBy+T9ZnZdog+eG3XJp+i7tJOTw3QDscGIQmUuD2WzVZFWVIhKsJiYihiU kO0CvNaknG76E/kjfia9iy2CKUeupMTY+BLa1Qc8h13FUWkqjvewTLs9zkFKo1NLLqPjbCkhpvrGH DtQckl1XC9drXH0VnI6NrqwroGmxBaS8pJHvgh20jbgtUA4VsZdwWAsurXiiQOhcqShPPapAA+Cbj efNRYHKreGvj14igjGT0FiAdba0mufMTLkl92rS5rEcdHXrR+tJFMkBqNdIAx9iyTfOgYusBFThCa 3MbOzdfbv1+e3vYMlYCNHw==; Original-Received: from [87.69.77.57] (port=1835 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 1oHURt-0003uO-7O; Fri, 29 Jul 2022 14:10:57 -0400 In-Reply-To: (message from Alan Mackenzie on Fri, 29 Jul 2022 17:44:58 +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:238205 Archived-At: > Date: Fri, 29 Jul 2022 17:44:58 +0000 > Cc: 56818@debbugs.gnu.org > From: Alan Mackenzie > > diff -r 9c649274b259 cc-engine.el > --- a/cc-engine.el Tue Jul 26 20:08:39 2022 +0000 > +++ b/cc-engine.el Fri Jul 29 17:25:16 2022 +0000 > @@ -1679,9 +1679,13 @@ > Return the result of `forward-comment' if it gets called, nil otherwise." > `(if (not comment-end-can-be-escaped) > (forward-comment -1) > - (when (and (< (skip-syntax-backward " >") 0) > - (eq (char-after) ?\n)) > - (forward-char)) > + (let ((dist (skip-syntax-backward " >"))) > + (when (and > + (< dist 0) > + (progn > + (skip-syntax-forward " " (- (point) dist 1)) > + (eq (char-after) ?\n))) > + (forward-char))) > (cond > ((and (eq (char-before) ?\n) > (eq (char-before (1- (point))) ?\\)) > > > > > > Alan, this seems to be a regression in Emacs 28, so could you please > > look into it? > > Eli, Do I understand you want the fix in the release branch? Yes, please.