GNU bug report logs - #10117
duplicate evaluation of after-change-functions hooks in revert-buffer

Previous Next

Package: emacs;

Reported by: Tiphaine Turpin <tiphaine.turpin <at> inria.fr>

Date: Wed, 23 Nov 2011 11:21:02 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Tiphaine Turpin <tiphaine.turpin <at> inria.fr>
Cc: 10117 <at> debbugs.gnu.org
Subject: bug#10117: duplicate evaluation of after-change-functions hooks in revert-buffer
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




This bug report was last modified 13 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.