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#60427: Emacs-29, c++-ts-mode: typing "char" into an empty buffer causes an exception in redisplay. Date: Sat, 31 Dec 2022 13:02:26 +0200 Message-ID: <83r0wf4z0d.fsf@gnu.org> References: <5B1D377B-63DE-43F9-A0AE-27B06AAF24AA@gmail.com> <838rio5b2b.fsf@gnu.org> <44090371-BC18-4F3C-AC59-D9B34E1CE42E@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 60427@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 31 12:03: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 1pBZe3-0004xG-2H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Dec 2022 12:03:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBZdo-0001N8-SJ; Sat, 31 Dec 2022 06:03:04 -0500 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 1pBZdm-0001Mk-RJ for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 06:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pBZdm-0001zh-Bq for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 06:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBZdl-0000pm-Uc for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 06:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2022 11:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60427 X-GNU-PR-Package: emacs Original-Received: via spool by 60427-submit@debbugs.gnu.org id=B60427.16724845713184 (code B ref 60427); Sat, 31 Dec 2022 11:03:01 +0000 Original-Received: (at 60427) by debbugs.gnu.org; 31 Dec 2022 11:02:51 +0000 Original-Received: from localhost ([127.0.0.1]:36643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBZda-0000pI-Up for submit@debbugs.gnu.org; Sat, 31 Dec 2022 06:02:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBZdZ-0000p2-AP for 60427@debbugs.gnu.org; Sat, 31 Dec 2022 06:02:49 -0500 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 1pBZdT-0001xS-3O; Sat, 31 Dec 2022 06:02:43 -0500 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=fSEQOcXLQCQnHJmdM6pagvJMVtIrzbrrFYkKaHti9q0=; b=GGsRobCSgGKS YUU3XVbsf0knrqqHl6uXM3nrVLYJO/Pz8rf5EFtqM5MaY9ro39oNbeyuIp28a9Qgrmld0gdM3UVkX oMz4IGnI0vqp/IHDt+JCFB32ZLZjvfOyPYfiJqApXl244F+zJBE9eYIZRsVKIikPXbuATU2Aa0huW cxoLLYzub/xl8wIQTbQdxcHrXOfu2lU87TqS2XAroV69lIYnwzagqJCTRJfXWyUfVEH6ChLiMcfz8 NfQaOUT+8TPmXhhJRzYghx0vx+rklMmKJSdR+bfvEoEphA5ZSdbkctmDrpujulXmtj3YE5b7T/Rxj AlEeKUwg18Dq69dF66oMhQ==; Original-Received: from [87.69.77.57] (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 1pBZdA-0001kv-RB; Sat, 31 Dec 2022 06:02:42 -0500 In-Reply-To: (message from Alan Mackenzie on Sat, 31 Dec 2022 10:29:21 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252184 Archived-At: > Date: Sat, 31 Dec 2022 10:29:21 +0000 > Cc: Eli Zaretskii , 60427@debbugs.gnu.org, acm@muc.de > From: Alan Mackenzie > > I've just downloaded the latest commits in the emacs-29 branch, > bootstrapped, and I still see the problem, both in X GUI and on a Linux > console. Just as a matter of interest, I get the error after typing the > h in "char", so the problem would appear not to be related to the > specific character string "char". I cannot reproduce this with the current emacs-29 branch, neither with native-compilation nor without it. I also tried in a -nw session, and couldn't reproduce there as well. How did you get and build the C++ grammar file for tree-sitter? If you cloned their repository, what is the last commit from which you produced the shared library file? And which version of the tree-sitter library are you using? Finally, is the recipe you posted complete? are you sure you did nothing else since starting Emacs?