[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree sitter: allowing access to `ts_tree_get_changed_ranges()' from

From: Simon Pugnet
Subject: Re: Tree sitter: allowing access to `ts_tree_get_changed_ranges()' from elisp
Date: Sat, 26 Nov 2022 16:53:23 +0100

Eli Zaretskii <eliz@gnu.org> writes:

From: Simon Pugnet <simon@polaris64.net>
Date: Sat, 26 Nov 2022 15:57:33 +0100

I've checked src/treesit.c and I can see that there is a `ts_tree_get_changed_ranges()' function, presumably from the underlying tree sitter library. However I don't think this is being exposed to elisp. Would it be possible to allow this information to be provided to elisp somehow?

It's exposed to Lisp via the parser's after-change notifiers.  See

Thank you; yes I can now see that `treesit-parser-add-notifier' should allow me to do what I need to do.

Kind regards,

Simon Pugnet

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]