[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/eval.c
From: |
Lute Kamstra |
Subject: |
[Emacs-diffs] Changes to emacs/src/eval.c |
Date: |
Thu, 26 May 2005 05:32:15 -0400 |
Index: emacs/src/eval.c
diff -c emacs/src/eval.c:1.238 emacs/src/eval.c:1.239
*** emacs/src/eval.c:1.238 Sun May 8 16:30:13 2005
--- emacs/src/eval.c Thu May 26 09:32:15 2005
***************
*** 2292,2298 ****
enum run_hooks_condition));
DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0,
! doc: /* Run each hook in HOOKS. Major mode functions use this.
Each argument should be a symbol, a hook variable.
These symbols are processed in the order specified.
If a hook symbol has a non-nil value, that value may be a function
--- 2292,2298 ----
enum run_hooks_condition));
DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0,
! doc: /* Run each hook in HOOKS.
Each argument should be a symbol, a hook variable.
These symbols are processed in the order specified.
If a hook symbol has a non-nil value, that value may be a function
***************
*** 2300,2305 ****
--- 2300,2308 ----
If the value is a function, it is called with no arguments.
If it is a list, the elements are called, in order, with no arguments.
+ Major modes should not use this function directly to run their mode
+ hook; they should use `run-mode-hooks' instead.
+
Do not use `make-local-variable' to make a hook variable buffer-local.
Instead, use `add-hook' and specify t for the LOCAL argument.
usage: (run-hooks &rest HOOKS) */)