diff options
| author | Richard M. Stallman | 2005-07-03 16:38:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-07-03 16:38:17 +0000 |
| commit | fbbad95fff0641e56337e0eca56b4f46d3f07e47 (patch) | |
| tree | 344197c0dccb34278950c6d161ba6398c3822b0f | |
| parent | b68f60d70304d1720710efa10479f4e36d9c50d0 (diff) | |
| download | emacs-fbbad95fff0641e56337e0eca56b4f46d3f07e47.tar.gz emacs-fbbad95fff0641e56337e0eca56b4f46d3f07e47.zip | |
(Special Properties): Change hook functions should bind
inhibit-modification-hooks around altering buffer text.
| -rw-r--r-- | lispref/text.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lispref/text.texi b/lispref/text.texi index 3d668738250..5b9b4259a1c 100644 --- a/lispref/text.texi +++ b/lispref/text.texi | |||
| @@ -3152,6 +3152,10 @@ 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)} |