Mercurial > emacs
diff src/eval.c @ 13103:a537b52d6668
(run_hook_with_args_2): New function.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 03 Oct 1995 09:11:08 +0000 |
| parents | eceb3f25e115 |
| children | 661060193eb8 |
line wrap: on
line diff
--- a/src/eval.c Tue Oct 03 09:09:30 1995 +0000 +++ b/src/eval.c Tue Oct 03 09:11:08 1995 +0000 @@ -2017,6 +2017,20 @@ UNGCPRO; return Qnil; } + +/* Run the hook HOOK, giving each function the two args ARG1 and ARG2. */ + +void +run_hook_with_args_2 (hook, arg1, arg2) + Lisp_Object hook, arg1, arg2; +{ + Lisp_Object temp[3]; + temp[0] = hook; + temp[1] = arg1; + temp[2] = arg2; + + Frun_hook_with_args (3, temp); +} /* Apply fn to arg */ Lisp_Object
