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#61374: 30.0.50; Wrong mark-sexp with tree-sitter Date: Thu, 09 Feb 2023 08:40:27 +0200 Message-ID: <835ycbnxyc.fsf@gnu.org> References: <875ycbitav.fsf.ref@aol.com> <875ycbitav.fsf@aol.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23252"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61374@debbugs.gnu.org To: Ergus , Yuan Fu , Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 07:41:27 2023 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 1pQ0cZ-0005qh-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 07:41:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ0cB-00082h-RS; Thu, 09 Feb 2023 01:41:03 -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 1pQ0cA-0007zu-EN for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 01:41: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 1pQ0cA-0002RZ-5j for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 01:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQ0cA-00057z-1z for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 01:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 06:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61374 X-GNU-PR-Package: emacs Original-Received: via spool by 61374-submit@debbugs.gnu.org id=B61374.167592483419652 (code B ref 61374); Thu, 09 Feb 2023 06:41:02 +0000 Original-Received: (at 61374) by debbugs.gnu.org; 9 Feb 2023 06:40:34 +0000 Original-Received: from localhost ([127.0.0.1]:57232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ0bi-00056t-1a for submit@debbugs.gnu.org; Thu, 09 Feb 2023 01:40:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ0bf-00056e-Ji for 61374@debbugs.gnu.org; Thu, 09 Feb 2023 01:40:33 -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 1pQ0bY-0002Nc-D8; Thu, 09 Feb 2023 01:40:24 -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=XvOoIRdNaJh2WjYCRQdGkCvhs8hwJ3fCwy+j4v9y/ns=; b=p0Lc+5j3i3ZS sxYrsiogEbg2a24pV/n0mtjRVcAF3IKqayAQKzM5RY+IbU5dfDSesQbc/fRhzjI+BGcLKWMEndzQW 5tplcGdmGopHn5wN6I7uRVgoCmXwu29+vTWvXwRYN1cN1bnia6dj80cLsZ0TvqitZE6fovIMDViJR yfDssFy0QaZCxKwe6b9yBicXpSRev71z91ZevJCH0A1viwz4q5mHXwIfwk6ZidooObieCeSYMBcWS PB5kFMx2GvUaLgZTdZ9qMa2gNwwOQxHqDLCUmssa/1HvcY7O7VY5FbG5lNDI6JBUNyCUnOmb1jiGW ZEppWgVLzxdbvKVmAM21IQ==; 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 1pQ0bI-0005IQ-1M; Thu, 09 Feb 2023 01:40:17 -0500 In-Reply-To: <875ycbitav.fsf@aol.com> (bug-gnu-emacs@gnu.org) 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:255187 Archived-At: > Date: Thu, 09 Feb 2023 01:19:52 +0100 > From: Ergus via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Just trying tree-sitter with c++-mode is doing a wrong mark-sexp. > > With this code: > > { > vector myvar; > } > > M-x c++-ts-mode > > go to { and do C-M-SPC. The region marked goes from { up to > instead of > the corresponding } The problem is in forward-sexp (try C-M-f from the same place), which C-M-SPC calls. This problem exists only on master, where forward-sexp was modified to call treesit-forward-sexp; on emacs-29 the behavior is as expected. CC'ing Yuan and Theo, who will probably find a fix in no time... Thanks.