comparison lispref/text.texi @ 63950:a56fccc4986b

(Special Properties): Change hook functions should bind inhibit-modification-hooks around altering buffer text.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Jul 2005 16:38:17 +0000
parents 99ab8bedbc9d
children e836425ee789 f9a65d7ebd29
comparison
equal deleted inserted replaced
63949:12cb724692d3 63950:a56fccc4986b
3150 and end of the part of the buffer being modified. Note that if a 3150 and end of the part of the buffer being modified. Note that if a
3151 particular modification hook function appears on several characters 3151 particular modification hook function appears on several characters
3152 being modified by a single primitive, you can't predict how many times 3152 being modified by a single primitive, you can't predict how many times
3153 the function will be called. 3153 the function will be called.
3154 3154
3155 If these functions modify the buffer, they should bind
3156 @code{inhibit-modification-hooks} to @code{t} around doing so, to
3157 avoid confusing the internal mechanism that calls these hooks.
3158
3155 @item insert-in-front-hooks 3159 @item insert-in-front-hooks
3156 @itemx insert-behind-hooks 3160 @itemx insert-behind-hooks
3157 @kindex insert-in-front-hooks @r{(text property)} 3161 @kindex insert-in-front-hooks @r{(text property)}
3158 @kindex insert-behind-hooks @r{(text property)} 3162 @kindex insert-behind-hooks @r{(text property)}
3159 The operation of inserting text in a buffer also calls the functions 3163 The operation of inserting text in a buffer also calls the functions