summaryrefslogtreecommitdiff
path: root/doc/lispref/hooks.texi
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-10-23 20:03:34 +0200
committerStefan Kangas <stefan@marxist.se>2021-10-23 20:03:34 +0200
commit4fd5c8df67e2eb41dd0ea6d95586bbd8d09cc482 (patch)
tree398be37af2cd86e7967c6871796038856240ab13 /doc/lispref/hooks.texi
parent6fa520677095c5872f1d448f6f1001ee22e42276 (diff)
downloademacs-4fd5c8df67e2eb41dd0ea6d95586bbd8d09cc482.tar.gz
Clarify abnormal hook documentation
* doc/lispref/hooks.texi (Standard Hooks): * doc/lispref/modes.texi (Hooks): Clarify wording of "abnormal hook" documentation. (Bug#34588)
Diffstat (limited to 'doc/lispref/hooks.texi')
-rw-r--r--doc/lispref/hooks.texi12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/lispref/hooks.texi b/doc/lispref/hooks.texi
index feec8b24f46..e9d1e270d8e 100644
--- a/doc/lispref/hooks.texi
+++ b/doc/lispref/hooks.texi
@@ -18,11 +18,13 @@ arguments and their values are completely ignored. The recommended way
to put a new function on such a hook is to call @code{add-hook}.
@xref{Hooks}, for more information about using hooks.
-The variables whose names end in @samp{-functions} are usually @dfn{abnormal
-hooks} (some old code may also use the deprecated @samp{-hooks} suffix); their
-values are lists of functions, but these functions are called in a special way
-(they are passed arguments, or their return values are used). The variables
-whose names end in @samp{-function} have single functions as their values.
+The variables whose names end in @samp{-functions} are usually
+@dfn{abnormal hooks} (some old code may also use the deprecated
+@samp{-hooks} suffix). Their values are lists of functions, but these
+functions are called in a special way: they are either passed
+arguments, or their return values are used in some way. The variables
+whose names end in @samp{-function} have single functions as their
+values.
This is not an exhaustive list, it only covers the more general hooks.
For example, every major mode defines a hook named