unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tiphaine Turpin <tiphaine.turpin@inria.fr>
Cc: 10117@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	[thread overview]
Message-ID: <jwvty5ukilh.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4ECCD677.1090900@inria.fr> (Tiphaine Turpin's message of "Wed, 23 Nov 2011 12:18:15 +0100")

> 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





  reply	other threads:[~2011-11-23 14:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 11:18 bug#10117: duplicate evaluation of after-change-functions hooks in revert-buffer Tiphaine Turpin
2011-11-23 14:42 ` Stefan Monnier [this message]
     [not found]   ` <4ECD0A5D.90907@inria.fr>
2011-12-01 20:23     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvty5ukilh.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=10117@debbugs.gnu.org \
    --cc=tiphaine.turpin@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).