aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2025-07-30 19:48:07 +0300
committerEli Zaretskii2025-07-30 19:48:07 +0300
commit456f44a7b3cee7ac6dd3b13dc6690d14f5dd3603 (patch)
treeedd00b7e008bd5db0ead30f122047fa08392c8c0 /doc
parentf20d5e63bc052985c5681e583ca48309f44ff515 (diff)
downloademacs-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.texi6
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
6292data if they do anything that uses regular expressions; otherwise, they 6292data if they do anything that uses regular expressions; otherwise, they
6293will interfere in bizarre ways with the editing operations that call 6293will interfere in bizarre ways with the editing operations that call
6294them. 6294them. In addition, the functions in these hooks should avoid changing
6295buffer text, faces, properties, overlays, and other aspects of the
6296buffer-specific state except those that the hook functions themselves
6297create and manage, because other parts of Emacs might become confused by
6298such changes behind their back.
6295 6299
6296@defvar before-change-functions 6300@defvar before-change-functions
6297This variable holds a list of functions to call when Emacs is about to 6301This variable holds a list of functions to call when Emacs is about to