all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is there a way to know if this-command altered the buffer?
@ 2021-05-12  3:33 Marcin Borkowski
  2021-05-12  4:27 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Borkowski @ 2021-05-12  3:33 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-12  5:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-12  3:33 Is there a way to know if this-command altered the buffer? Marcin Borkowski
2021-05-12  4:27 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-05-12  5:39   ` Marcin Borkowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.