From 7deff2ac73529e51914aa8d555feb7e0d93acd54 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 3 Nov 2001 16:29:25 +0000 Subject: [PATCH] (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix. (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix. --- src/eval.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/eval.c b/src/eval.c index fb6cea32c84..ed592399212 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2182,7 +2182,8 @@ or a list of functions to be called to run the hook.\n\ If the value is a function, it is called with no arguments.\n\ If it is a list, the elements are called, in order, with no arguments.\n\ \n\ -To make a hook variable buffer-local, use `make-local-hook',\n\ +Do not use `make-local-variable' to make a hook variable buffer-local.\n\ +Instead, use `add-hook' and specify t for the LOCAL argument.\n\ not `make-local-variable'.") (nargs, args) int nargs; @@ -2212,7 +2213,8 @@ with the given arguments ARGS.\n\ It is best not to depend on the value return by `run-hook-with-args',\n\ as that may change.\n\ \n\ -To make a hook variable buffer-local, use `make-local-hook',\n\ +Do not use `make-local-variable' to make a hook variable buffer-local.\n\ +Instead, use `add-hook' and specify t for the LOCAL argument.\n\ not `make-local-variable'.") (nargs, args) int nargs; @@ -2230,7 +2232,8 @@ passing arguments ARGS to each of them, until one of them\n\ returns a non-nil value. Then we return that value.\n\ If all the functions return nil, we return nil.\n\ \n\ -To make a hook variable buffer-local, use `make-local-hook',\n\ +Do not use `make-local-variable' to make a hook variable buffer-local.\n\ +Instead, use `add-hook' and specify t for the LOCAL argument.\n\ not `make-local-variable'.") (nargs, args) int nargs; @@ -2248,7 +2251,8 @@ passing arguments ARGS to each of them, until one of them\n\ returns nil. Then we return nil.\n\ If all the functions return non-nil, we return non-nil.\n\ \n\ -To make a hook variable buffer-local, use `make-local-hook',\n\ +Do not use `make-local-variable' to make a hook variable buffer-local.\n\ +Instead, use `add-hook' and specify t for the LOCAL argument.\n\ not `make-local-variable'.") (nargs, args) int nargs; -- 2.39.2