/[emacs]/emacs/src/eval.c
ViewVC logotype

Diff of /emacs/src/eval.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.238 by teirllm, Sun May 8 16:30:13 2005 UTC revision 1.239 by lute, Thu May 26 09:32:15 2005 UTC
# Line 2292  static Lisp_Object run_hook_with_args P_ Line 2292  static Lisp_Object run_hook_with_args P_
2292                                             enum run_hooks_condition));                                             enum run_hooks_condition));
2293    
2294  DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0,  DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0,
2295         doc: /* Run each hook in HOOKS.  Major mode functions use this.         doc: /* Run each hook in HOOKS.
2296  Each argument should be a symbol, a hook variable.  Each argument should be a symbol, a hook variable.
2297  These symbols are processed in the order specified.  These symbols are processed in the order specified.
2298  If a hook symbol has a non-nil value, that value may be a function  If a hook symbol has a non-nil value, that value may be a function
# Line 2300  or a list of functions to be called to r Line 2300  or a list of functions to be called to r
2300  If the value is a function, it is called with no arguments.  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.  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.
2305    
2306  Do not use `make-local-variable' to make a hook variable buffer-local.  Do not use `make-local-variable' to make a hook variable buffer-local.
2307  Instead, use `add-hook' and specify t for the LOCAL argument.  Instead, use `add-hook' and specify t for the LOCAL argument.
2308  usage: (run-hooks &rest HOOKS)  */)  usage: (run-hooks &rest HOOKS)  */)

Legend:
Removed from v.1.238  
changed lines
  Added in v.1.239

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26