[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (insert ?\n) spuriously calls before-change-functions twice. Help!

From: Alan Mackenzie
Subject: Re: (insert ?\n) spuriously calls before-change-functions twice. Help!
Date: Tue, 19 Jan 2010 13:23:16 +0000
User-agent: Mutt/1.5.9i

Hi, Stefan!

On Tue, Jan 05, 2010 at 02:52:37PM -0500, Stefan Monnier wrote:
> > I think I've tracked down what's happening.  After inserting the ?\n (any
> > other character is just the same), Emacs clears any text properties from
> > the new character by calling set_properties.  This, in its turn, invokes
> > before-change-functions.  A more detailed call stack is:

> Sounds like a bug indeed.

> > There doesn't seem to be any system in where the two change hooks are
> > invoked.  For example, insert directly calls signal_after_change, yet not
> > signal_before_change; surely invocations of these should be paired.

> Agreed.  Patch very welcome,

DONE.  Specifically, revision 99376, fixing set_text_properties in

>         Stefan

Alan Mackenzie (Nuremberg, Germany).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]