diff options
| author | Karoly Lorentey | 2005-05-28 21:04:38 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-05-28 21:04:38 +0000 |
| commit | 93d7a3669284221c9272784875f69c047873fe04 (patch) | |
| tree | 853af54aa3e46a73bd248dc7033dbf4e39132f9f /src/eval.c | |
| parent | b4bb3cbc7caca5c9c207d9ed42cacb978790af67 (diff) | |
| parent | 9594f9294b16c3e828b593c4cc9159b6328e1aa3 (diff) | |
| download | emacs-93d7a3669284221c9272784875f69c047873fe04.tar.gz emacs-93d7a3669284221c9272784875f69c047873fe04.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 70-73, 320-331)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-320
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-321
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-322
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-323
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-324
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-325
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-326
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-327
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-328
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-329
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-330
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-331
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-70
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-71
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-72
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-73
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-348
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 7f043daa555..8bb201c5df5 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2292,7 +2292,7 @@ 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 |
| @@ -2300,6 +2300,9 @@ 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 | 2302 | ||
| 2303 | Major modes should not use this function directly to run their mode | ||
| 2304 | hook; they should use `run-mode-hooks' instead. | ||
| 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) */) |