# HG changeset patch # User Richard M. Stallman # Date 1120408697 0 # Node ID a56fccc4986bf8c958b156c33a0e58a847e2e38e # Parent 12cb724692d37808115f8f5e229fe10774486853 (Special Properties): Change hook functions should bind inhibit-modification-hooks around altering buffer text. diff -r 12cb724692d3 -r a56fccc4986b lispref/text.texi --- a/lispref/text.texi Sun Jul 03 16:36:23 2005 +0000 +++ b/lispref/text.texi Sun Jul 03 16:38:17 2005 +0000 @@ -3152,6 +3152,10 @@ being modified by a single primitive, you can't predict how many times the function will be called. +If these functions modify the buffer, they should bind +@code{inhibit-modification-hooks} to @code{t} around doing so, to +avoid confusing the internal mechanism that calls these hooks. + @item insert-in-front-hooks @itemx insert-behind-hooks @kindex insert-in-front-hooks @r{(text property)}