comparison src/eval.c @ 62709:d66d7efe0adf

(Frun_hooks): Mention run-mode-hooks in docstring.
author Lute Kamstra <lute@gnu.org>
date Thu, 26 May 2005 09:32:15 +0000
parents 91b45e7531ea
children 5b94f4660d9d
comparison
equal deleted inserted replaced
62708:23e016b887bb 62709:d66d7efe0adf
2290 enum run_hooks_condition {to_completion, until_success, until_failure}; 2290 enum run_hooks_condition {to_completion, until_success, until_failure};
2291 static Lisp_Object run_hook_with_args P_ ((int, Lisp_Object *, 2291 static Lisp_Object run_hook_with_args P_ ((int, Lisp_Object *,
2292 enum run_hooks_condition)); 2292 enum run_hooks_condition));
2293 2293
2294 DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0, 2294 DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0,
2295 doc: /* Run each hook in HOOKS. Major mode functions use this. 2295 doc: /* Run each hook in HOOKS.
2296 Each argument should be a symbol, a hook variable. 2296 Each argument should be a symbol, a hook variable.
2297 These symbols are processed in the order specified. 2297 These symbols are processed in the order specified.
2298 If a hook symbol has a non-nil value, that value may be a function 2298 If a hook symbol has a non-nil value, that value may be a function
2299 or a list of functions to be called to run the hook. 2299 or a list of functions to be called to run the hook.
2300 If the value is a function, it is called with no arguments. 2300 If the value is a function, it is called with no arguments.
2301 If it is a list, the elements are called, in order, with no arguments. 2301 If it is a list, the elements are called, in order, with no arguments.
2302
2303 Major modes should not use this function directly to run their mode
2304 hook; they should use `run-mode-hooks' instead.
2302 2305
2303 Do not use `make-local-variable' to make a hook variable buffer-local. 2306 Do not use `make-local-variable' to make a hook variable buffer-local.
2304 Instead, use `add-hook' and specify t for the LOCAL argument. 2307 Instead, use `add-hook' and specify t for the LOCAL argument.
2305 usage: (run-hooks &rest HOOKS) */) 2308 usage: (run-hooks &rest HOOKS) */)
2306 (nargs, args) 2309 (nargs, args)