GNU bug report logs -
#67117
[PATCH] Tree-sitter: fix an issue when searching subtree backward
Previous Next
Reported by: Denis Zubarev <dvzubarev <at> yandex.ru>
Date: Sat, 11 Nov 2023 23:40:02 UTC
Severity: normal
Tags: patch
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> On Nov 18, 2023, at 10:40 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> From: Yuan Fu <casouri <at> gmail.com>
>> Date: Sat, 18 Nov 2023 22:13:49 -0800
>> Cc: dvzubarev <at> yandex.ru,
>> 67117 <at> debbugs.gnu.org
>>
>>
>>
>>> On Nov 18, 2023, at 9:47 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>>>
>>>> From: Yuan Fu <casouri <at> gmail.com>
>>>> Date: Sat, 18 Nov 2023 10:47:47 -0800
>>>> Cc: Denis Zubarev <dvzubarev <at> yandex.ru>,
>>>> 67117 <at> debbugs.gnu.org
>>>>
>>>>
>>>>>> Steps to reproduce the issue:
>>>>>> 1. emacs -Q
>>>>>> 2. M-x find-file /tmp/t.py
>>>>>> 3. paste to the buffer
>>>>>>
>>>>>> Temp(1, 2)
>>>>>>
>>>>>> 4. M-x python-ts-mode
>>>>>> 5. Call search-subtree with backward flag
>>>>>> M-x eval-expression (treesit-search-subtree
>>>>>> (treesit--thing-at (point) "call")
>>>>>> (lambda (n) (equal (treesit-node-type n ) "integer"))
>>>>>> t)
>>>>>> It should return the second int node (#<treesit-node integer in 9-10>), but it returns nil.
>>>>>
>>>>> Yuan, any comments to the patch and the issue in general?
>>>>
>>>> LGTM. Thanks Denis, and Eli :-)
>>>
>>> Should we install this on the emacs-29 branch or on master?
>>
>> Emacs-29, I’d say, since it’s a bug fix. Why do you ask?
>
> Because I want to install it, obviously.
Of course ;-) I mean you are usually the people who answer this type of questions, and our convention is to install bug fixes on emacs-29, so I was wondering if there’s some other considerations that I don’t know about.
Yuan
This bug report was last modified 1 year and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.