Subject: bug#10117: duplicate evaluation of after-change-functions hooks in revert-buffer

From: Stefan Monnier <[email-masked]>
Date: Wed, 23 Nov 2011 09:42:31 -0500

> Am I wrong when I assume that the sequence of modifications passed to the
> after-change-functions is an exact trace of the buffer contents evolution ?

Well, it should be, yes.

> What could possibly cause such a duplicate event ?

A bug in revert-buffer?  revert-buffer modifies the buffer on its own
rather than via calls to delete and insert, so it runs those
change-functions "by hand".  Do you have a small test case reproducing
the problem?

        Stefan