|
From: | Yuan Fu |
Subject: | Reliable after-change-functions (via: Using incremental parsing in Emacs) |
Date: | Sun, 29 Mar 2020 15:29:41 -0400 |
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. Undo seems to always know the exact change, but it doesn’t seem to have a hook avaliable. Yuan
[Prev in Thread] | Current Thread | [Next in Thread] |