help-gnu-emacs
[Top][All Lists]
Advanced

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

Is there a way to know if this-command altered the buffer?


From: Marcin Borkowski
Subject: Is there a way to know if this-command altered the buffer?
Date: Wed, 12 May 2021 05:33:30 +0200
User-agent: mu4e 1.1.0; emacs 28.0.50

Hi all,

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)?

TIA,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

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