diff options
| author | Eli Zaretskii | 2018-01-06 21:43:04 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-01-06 21:43:04 +0200 |
| commit | a5f718c4c58c821fb121196a499df01391bb7ba4 (patch) | |
| tree | ecdee15996d3d953b8d35ff196aa62a672df470a /doc | |
| parent | e876f5f9fb090203b77c9cc2fa0208224ac2a1be (diff) | |
| download | emacs-a5f718c4c58c821fb121196a499df01391bb7ba4.tar.gz emacs-a5f718c4c58c821fb121196a499df01391bb7ba4.zip | |
; * doc/lispref/text.texi (Change Hooks): Fix last change.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/text.texi | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index cd644478d4b..a004952c37c 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -5023,21 +5023,21 @@ these functions, and neither do certain internal buffer changes, such | |||
| 5023 | as changes in buffers created by Emacs internally for certain jobs, | 5023 | as changes in buffers created by Emacs internally for certain jobs, |
| 5024 | that should not be visible to Lisp programs. | 5024 | that should not be visible to Lisp programs. |
| 5025 | 5025 | ||
| 5026 | The vast bulk of buffer changing primitives will call | 5026 | The vast majority of buffer changing primitives will call |
| 5027 | @code{before-change-functions} and @code{after-change-functions} in | 5027 | @code{before-change-functions} and @code{after-change-functions} in |
| 5028 | balanced pairs, once for each change, where the arguments to these | 5028 | balanced pairs, once for each change, where the arguments to these |
| 5029 | hooks exactly delimit the change being made. Yet, hook functions | 5029 | hooks exactly delimit the change being made. Yet, hook functions |
| 5030 | should not rely on this always being the case: | 5030 | should not rely on this always being the case, because some complex |
| 5031 | 5031 | primitives call @code{before-change-functions} once before making | |
| 5032 | Other, complex primitives call @code{before-change-functions} once | 5032 | changes, and then call @code{after-change-functions} zero or more |
| 5033 | before making changes, and then call @code{after-change-functions} | 5033 | times, depending on how many individual changes the primitive is |
| 5034 | zero, one, or several times, depending on how many individual changes | 5034 | making. When that happens, the arguments to |
| 5035 | the primitive is making. The arguments to | ||
| 5036 | @code{before-change-functions} will enclose a region in which the | 5035 | @code{before-change-functions} will enclose a region in which the |
| 5037 | individual changes are made, but won't necessarily be the minimal such | 5036 | individual changes are made, but won't necessarily be the minimal such |
| 5038 | region. The arguments to each successive call of | 5037 | region, and the arguments to each successive call of |
| 5039 | @code{after-change-functions} will then delimit the current part of | 5038 | @code{after-change-functions} will then delimit the part of text being |
| 5040 | the change exactly. | 5039 | changed exactly. In general, we advise to use either before- or the |
| 5040 | after-change hooks, but not both. | ||
| 5041 | 5041 | ||
| 5042 | @defmac combine-after-change-calls body@dots{} | 5042 | @defmac combine-after-change-calls body@dots{} |
| 5043 | The macro executes @var{body} normally, but arranges to call the | 5043 | The macro executes @var{body} normally, but arranges to call the |