|
From: | Emanuel Berg |
Subject: | Re: Is there a way to know if this-command altered the buffer? |
Date: | Wed, 12 May 2021 06:27:25 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Marcin Borkowski wrote: > I want to run some function in a certain hook. This function > will update some info displayed using an overlay. The info > depends on the buffer contents and is pretty expensive to > compute, so I'd like to only display it if the buffer > really changed. > > Is there a way to know if `this-command' actually changed > the buffer (as opposed to e.g. point motion)? Maybe these buffer-chars-modified-tick buffer-modified-tick ? -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |