diff options
| author | Eli Zaretskii | 2025-07-30 19:48:07 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-07-30 19:48:07 +0300 |
| commit | 456f44a7b3cee7ac6dd3b13dc6690d14f5dd3603 (patch) | |
| tree | edd00b7e008bd5db0ead30f122047fa08392c8c0 /doc | |
| parent | f20d5e63bc052985c5681e583ca48309f44ff515 (diff) | |
| download | emacs-456f44a7b3cee7ac6dd3b13dc6690d14f5dd3603.tar.gz emacs-456f44a7b3cee7ac6dd3b13dc6690d14f5dd3603.zip | |
; Improve documentation of change hooks
* doc/lispref/text.texi (Change Hooks): Warn against buffer
changes in the hook functions. (Bug#79115)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/text.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 8329a67d6c2..dc35e93f2da 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -6291,7 +6291,11 @@ specific parts of the text. | |||
| 6291 | The functions you use in these hooks should save and restore the match | 6291 | The functions you use in these hooks should save and restore the match |
| 6292 | data if they do anything that uses regular expressions; otherwise, they | 6292 | data if they do anything that uses regular expressions; otherwise, they |
| 6293 | will interfere in bizarre ways with the editing operations that call | 6293 | will interfere in bizarre ways with the editing operations that call |
| 6294 | them. | 6294 | them. In addition, the functions in these hooks should avoid changing |
| 6295 | buffer text, faces, properties, overlays, and other aspects of the | ||
| 6296 | buffer-specific state except those that the hook functions themselves | ||
| 6297 | create and manage, because other parts of Emacs might become confused by | ||
| 6298 | such changes behind their back. | ||
| 6295 | 6299 | ||
| 6296 | @defvar before-change-functions | 6300 | @defvar before-change-functions |
| 6297 | This variable holds a list of functions to call when Emacs is about to | 6301 | This variable holds a list of functions to call when Emacs is about to |