diff options
| author | Richard M. Stallman | 1995-10-03 09:11:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-03 09:11:08 +0000 |
| commit | 7d48558fef0502a8839510c014512e4cbd9b47f2 (patch) | |
| tree | 8de109c748487bea66fa27644bd521c20a268e88 /src/eval.c | |
| parent | 0a1f771ac2f5f2582470df8480fd2d7db3ec854e (diff) | |
| download | emacs-7d48558fef0502a8839510c014512e4cbd9b47f2.tar.gz emacs-7d48558fef0502a8839510c014512e4cbd9b47f2.zip | |
(run_hook_with_args_2): New function.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 938b20cd824..69ce3f35c54 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2017,6 +2017,20 @@ run_hook_list_with_args (funlist, nargs, args) | |||
| 2017 | UNGCPRO; | 2017 | UNGCPRO; |
| 2018 | return Qnil; | 2018 | return Qnil; |
| 2019 | } | 2019 | } |
| 2020 | |||
| 2021 | /* Run the hook HOOK, giving each function the two args ARG1 and ARG2. */ | ||
| 2022 | |||
| 2023 | void | ||
| 2024 | run_hook_with_args_2 (hook, arg1, arg2) | ||
| 2025 | Lisp_Object hook, arg1, arg2; | ||
| 2026 | { | ||
| 2027 | Lisp_Object temp[3]; | ||
| 2028 | temp[0] = hook; | ||
| 2029 | temp[1] = arg1; | ||
| 2030 | temp[2] = arg2; | ||
| 2031 | |||
| 2032 | Frun_hook_with_args (3, temp); | ||
| 2033 | } | ||
| 2020 | 2034 | ||
| 2021 | /* Apply fn to arg */ | 2035 | /* Apply fn to arg */ |
| 2022 | Lisp_Object | 2036 | Lisp_Object |