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#71518: 30.0.50; Errors during redisplay with c++-ts-mode Date: Sat, 22 Jun 2024 19:56:34 +0300 Message-ID: <861q4ohq65.fsf@gnu.org> References: <865xue1gtu.fsf@gnu.org> <4884041.OV4Wx5bFTl@fedora> <86a5jdgece.fsf@gnu.org> <7030786.9J7NaK4W3v@fedora> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21908"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71518@debbugs.gnu.org, casouri@gmail.com To: Vincenzo Pupillo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 22 18:57:29 2024 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 1sL43M-0005R3-EV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jun 2024 18:57:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sL436-0005pi-RL; Sat, 22 Jun 2024 12:57:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sL42w-0005mI-NR for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 12:57:05 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sL42w-000285-FJ for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 12:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sL42w-0004LT-BJ for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 12:57:02 -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, 22 Jun 2024 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71518 X-GNU-PR-Package: emacs Original-Received: via spool by 71518-submit@debbugs.gnu.org id=B71518.171907541416669 (code B ref 71518); Sat, 22 Jun 2024 16:57:02 +0000 Original-Received: (at 71518) by debbugs.gnu.org; 22 Jun 2024 16:56:54 +0000 Original-Received: from localhost ([127.0.0.1]:52607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL42n-0004Km-JN for submit@debbugs.gnu.org; Sat, 22 Jun 2024 12:56:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL42l-0004KQ-DV for 71518@debbugs.gnu.org; Sat, 22 Jun 2024 12:56:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sL42f-00025M-3o; Sat, 22 Jun 2024 12:56:45 -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=VZPLSmmI3dP8WVwg9zQVGbvxRlE+HY9os2XFUZl3pbk=; b=rPQu+gqmLtO7 /k/nX0yO5AKDgDwXcJBAaw9xz1xSqSvojNpKiPWPyCbhI1okwzNv+LJ8TwLkspD85NVtcoIF6n27J I5+cPx7h61eyD31ktSqBdW1R0zEQ8rbH4oddNzxNX9u3gKrjvSaiLvl66VsdHOayXdJFMwsLKksWr Ux6N8N/34pEHnHQokZZI8alv8Z6tZCRCe2LKsfsdtRnw48AY5VYC/pUSrVo5hotX43u+AOgZHA/nW kLqsIRuD/j/yuoa2cEUHWWyMflkFdBC6pDfuOAIbu4L7Yx8KljW6LpexoSEA6YghXsTTCfZfbGrHN o2vsHPhX1K1Znwv6phaBxA==; In-Reply-To: <7030786.9J7NaK4W3v@fedora> (message from Vincenzo Pupillo on Sat, 22 Jun 2024 18:14:54 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287720 Archived-At: > From: Vincenzo Pupillo > Cc: casouri@gmail.com, 71518@debbugs.gnu.org > Date: Sat, 22 Jun 2024 18:14:54 +0200 > > > > fortunately, this time it was easier than usual! > > > > Thanks, but this change will _require_ the new version of the grammar > > library, right? I think we usually fix these problems in a way that > > both the old and the new versions are supported, because people could > > have different versions installed. > > In the tests I have done, it works with both the new and the old grammar. > > > > > Could you please amend the fix along these lines? > Okay, done. Can this be okay? Hmm... I still see an error message in *Messages* after installing this (I have grammar library version 0.22.2): Error during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Node type error at" 2 "(virtual) @font-lock-keyword-face [\"auto\" \"_Atomic\" \"break\" \"case\" \"const\" \"continue\" \"default\" \"do\" \"else\" \"enum\" \"extern\" \"for\" \"goto\" \"if\" \"inline\" \"register\" \"restrict\" \"return\" \"sizeof\" \"static\" \"struct\" \"switch\" \"typedef\" \"union\" \"volatile\" \"while\"] @font-lock-keyword-face" "Debug the query with `treesit-query-validate'") Any ideas or suggestions? "virtual" is highlighted, though, so I guess this is a matter of suppressing the errors or something? Thanks.