GNU bug report logs - #61529
30.0.50; tree-sitter: weird off-by-one error but only in css-ts-mode(?) with `treesit-node-at'

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Wed, 15 Feb 2023 08:32:01 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 29.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 61529 <at> debbugs.gnu.org (full text, mbox):

From: Mickey Petersen <mickey <at> masteringemacs.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 61529 <at> debbugs.gnu.org, theo <at> thornhill.no, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#61529: 30.0.50; tree-sitter: weird off-by-one error but
 only in css-ts-mode(?) with `treesit-node-at'
Date: Fri, 17 Feb 2023 07:24:42 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Thu, 16 Feb 2023 23:34:58 +0200
>> Cc: Eli Zaretskii <eliz <at> gnu.org>, 61529 <at> debbugs.gnu.org
>> From: Dmitry Gutov <dgutov <at> yandex.ru>
>>
>> +If no such node is found, but a leaf node ends at POS, it's
>> +returned.
>
> Passive tense alert!  This is better:
>
>   If no such node exists, but there's a leaf node which ends at POS,
>   return that node.


Thanks, everyone. I think it's safe to say I misread the intent of the
function. It's safe to close this issue.




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

Previous Next


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