diff --git a/src/keymap.c b/src/keymap.c index 8f462b3af73..0c44a112e01 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -743,8 +743,10 @@ map_keymap_call (key, val, fun, dummy) } DEFUN ("map-keymap", Fmap_keymap, Smap_keymap, 2, 3, 0, - doc: /* Call FUNCTION for every binding in KEYMAP. -FUNCTION is called with two arguments: the event and its binding. + doc: /* Call FUNCTION once for each binding in KEYMAP. +FUNCTION is called with two arguments: the event that is bound, and +the definition it is bound to. + If KEYMAP has a parent, the parent's bindings are included as well. This works recursively: if the parent has itself a parent, then the grandparent's bindings are also included and so on.