GNU bug report logs - #77256
Treesit language-at-point

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 25 Mar 2025 18:44:02 UTC

Severity: normal

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 77256 <at> debbugs.gnu.org, Vincenzo Pupillo <v.pupillo <at> gmail.com>
Subject: Re: bug#77256: Treesit language-at-point
Date: Tue, 08 Apr 2025 20:44:05 +0300
>> Using treesit-update-ranges is the right approach.  But is there no
>> better place to put it?  I assume there should be a function that
>> involves tree-sitter, in front of which you can put this call.
>
> 'treesit-outline-search' has no information about the positions of
> the beginning and end of the range of changed text.  Only
> 'after-change-functions' has access to this information.
>
> So what we could do is this, and I've tested that this approach works:

This is pushed as well.




This bug report was last modified 92 days ago.

Previous Next


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