|
From: | Stefan Monnier |
Subject: | Re: Reliable after-change-functions (via: Using incremental parsing in Emacs) |
Date: | Mon, 30 Mar 2020 11:06:57 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> A related question: is there a reliable way to be notified when buffer text > changes? Because AFAICT both tree-sitter and LSP needs to know incremental > changes. Both LSP packages (lsp-mode and eaglet) add hooks to > after-change-function. But their hook is not guaranteed to run because of > inhibit-modification-hooks. If they needed to be informed of the change but `inhibit-modification-hooks` prevented it, it's a bug. Please report it. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |