changeset 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 12cb724692d3
children 1ad36ea03bdd
files lispref/text.texi
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)}