Eli Zaretskii writes: >> From: Simon Pugnet >> 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 > 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/