[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detect all changes in a buffer
From: |
Stefan Monnier |
Subject: |
Re: Detect all changes in a buffer |
Date: |
Fri, 15 Jul 2016 23:43:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> There was some work on this in the past -- the effort I remember was based
> on a collaboration protocol called "Obby", but now that I look at
> https://www.emacswiki.org/emacs/CollaborativeEditing I see there were some
> other efforts as well.
GNU ELPA has Rudel which indeed supports the Obby protocol.
> (You raise a good question about `inhibit-modification-hooks', and
> I don't know the answer to it.)
Making "real" modifications to the buffer while binding
inhibit-modification-hooks to a non-nil value sounds like a bug.
BTW, after-change-functions should work just as well for deletions as
for insertions.
Stefan