1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-31 11:13:50 +00:00

Clarify how insert-in-front-hooks and insert-behind-hooks are used.

This commit is contained in:
Richard M. Stallman 1996-10-06 22:49:28 +00:00
parent 0f9c0ff030
commit 9ea65df961

View File

@ -2438,12 +2438,12 @@ the function will be called.
@itemx insert-behind-hooks @itemx insert-behind-hooks
@kindex insert-in-front-hooks @r{(text property)} @kindex insert-in-front-hooks @r{(text property)}
@kindex insert-behind-hooks @r{(text property)} @kindex insert-behind-hooks @r{(text property)}
The operation of inserting text in a buffer, before actually modifying The operation of inserting text in a buffer also calls the functions
the buffer, calls the functions listed in the listed in the @code{insert-in-front-hooks} property of the following
@code{insert-in-front-hooks} property of the following character and in character and in the @code{insert-behind-hooks} property of the
the @code{insert-behind-hooks} property of the preceding character. preceding character. These functions receive two arguments, the
These functions receive two arguments, the beginning and end of the beginning and end of the inserted text. The functions are called
inserted text. @emph{after} the actual insertion takes place.
See also @ref{Change Hooks}, for other hooks that are called See also @ref{Change Hooks}, for other hooks that are called
when you change text in a buffer. when you change text in a buffer.