unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Detect all changes in a buffer
@ 2016-07-15 16:37 Lars Tveito
  2016-07-15 21:07 ` Karl Fogel
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Tveito @ 2016-07-15 16:37 UTC (permalink / raw)
  To: emacs-devel

Hi!

I am developing a minor mode that enables real-time collaboration. I
wish to detect /all/ changes made to a buffer. So far I'm using
`before-change-functions' to detect deletions and
`after-change-functions' to detect insertions.

The problem is that some functions utilizes
`inhibit-modification-hooks', even though they make changes to the
buffer. An example is `eshell-send-input'.

The first question is whether you have any suggestions as to how to get
around this? The second is whether it is considered OK for functions to
use this hook even though the function makes changes to the buffer? The
documentation for change hooks states "These hook variables let you
arrange to take notice of all changes in all buffers" which is not
really true if changes are done whilst `inhibit-modification-hooks' is
non-nil.

- Lars



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

end of thread, other threads:[~2016-07-16  3:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-15 16:37 Detect all changes in a buffer Lars Tveito
2016-07-15 21:07 ` Karl Fogel
2016-07-16  2:24   ` raman
2016-07-16  3:43   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).