]> git.eshelyaron.com Git - emacs.git/commit
Enhance safe_run_hooks_1 and safe_run_hook_funcall to handle more arguments
authorAlan Mackenzie <acm@muc.de>
Mon, 15 Aug 2022 12:18:01 +0000 (12:18 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 15 Aug 2022 12:18:01 +0000 (12:18 +0000)
commit629f980fad0bee97ff63c5f684b472cc71061eea
tree99bc142ea761903067badeb66a8aa7246425b294
parentd5ee49c25c8f59ab17c40eebdf38a769c2f5588b
Enhance safe_run_hooks_1 and safe_run_hook_funcall to handle more arguments

This fixes bug #57179.

* src/keyboard.c (safe_run_hooks_1, safe_run_hook_funcall): Enhance these
functions so that nargs == 3 or 4 is handled as well as nargs == 2.  This
allows them to be used to call hooks with 1 or 2 arguments.
src/keyboard.c