emacs-devel
[Top][All Lists]
Advanced

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

Re: Confusion about first-change-hook


From: David Engster
Subject: Re: Confusion about first-change-hook
Date: Tue, 18 Dec 2012 22:00:54 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Stefan Monnier writes:
>> However, I soon saw that whitespace-mode got immediately activated in my
>> C++ buffers. The reason is that changing a text property apparently
>> already counts as "changing the buffer". Is this really the desired
>> behavior? If so, what else is there to achieve the above? Should I file
>> a wishlist-bug for something like 'buffer-modified-hook'?
>
> I think the bug is in the major mode that sets the text-property without
> proper protection (e.g. with-silent-modifications).

Oh. I didn't know that putting text properties on an unmodified buffer
should be protected like that. I guess I will have to look at some of my
own packages...

Anyway, thanks for the pointer. I'll see to it that I file a bug for
cc-mode.

-David



reply via email to

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