emacs-devel
[Top][All Lists]
Advanced

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

Reliable after-change-functions (via: Using incremental parsing in Emacs


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


reply via email to

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