Subject: Re: bug#60427: Emacs-29, c++-ts-mode: typing "char" into an empty buffer causes an exception in redisplay.

From: Eli Zaretskii <[email-masked]>
Date: Sun, 01 Jan 2023 08:22:24 +0200

> From: Yuan Fu <[email-masked]>
> Date: Sat, 31 Dec 2022 14:11:03 -0800
> Cc: Eli Zaretskii <[email-masked]>,
>  [email-masked]
> 
> As Eli observed, this seems like a mismatch between the C++ language grammar you used and the queries used by c++-ts-mode. We need to pin down or declare the version of the language grammar a major mode is written on. Maybe in NEWS file?

I just asked what version of the grammar and library Alan uses.

If we know which version is required. can we devise a test for it?
Then we could run that test when the language grammar is first loaded,
and reject versions that are not suitable.