# HG changeset patch # User Richard M. Stallman # Date 812711468 0 # Node ID a537b52d666831c8c91f53a824ebf47a7c5078e9 # Parent 960db92441d8409b3279ba047cade3705539fb3b (run_hook_with_args_2): New function. diff -r 960db92441d8 -r a537b52d6668 src/eval.c --- 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