GNU bug report logs - #61374
30.0.50; Wrong mark-sexp with tree-sitter

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Thu, 9 Feb 2023 00:21:01 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: Eli Zaretskii <eliz <at> gnu.org>, Ergus <spacibba <at> aol.com>, Yuan Fu <casouri <at> gmail.com>
Cc: 61374 <at> debbugs.gnu.org
Subject: bug#61374: 30.0.50; Wrong mark-sexp with tree-sitter
Date: Thu, 09 Feb 2023 07:49:22 +0100

On 9 February 2023 07:40:27 CET, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> Date: Thu, 09 Feb 2023 01:19:52 +0100
>> From:  Ergus via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> 
>> Just trying tree-sitter with c++-mode is doing a wrong mark-sexp.
>> 
>> With this code:
>> 
>> {
>>   vector<int> 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.

I'll look at it in just a bit :)

Thanks for pinging!

Theo




This bug report was last modified 2 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.