|
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 +0100I'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 treesit-parser-add-notifier.
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 https://www.polaris64.net/
signature.asc
Description: PGP signature
[Prev in Thread] | Current Thread | [Next in Thread] |