diff options
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/keymap.c b/src/keymap.c index e8f2f88bb26..2a03dda5a5e 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2571,7 +2571,8 @@ where_is_internal (Lisp_Object definition, Lisp_Object keymaps, | |||
| 2571 | DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0, | 2571 | DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0, |
| 2572 | doc: /* Return list of keys that invoke DEFINITION. | 2572 | doc: /* Return list of keys that invoke DEFINITION. |
| 2573 | If KEYMAP is a keymap, search only KEYMAP and the global keymap. | 2573 | If KEYMAP is a keymap, search only KEYMAP and the global keymap. |
| 2574 | If KEYMAP is nil, search all the currently active keymaps. | 2574 | If KEYMAP is nil, search all the currently active keymaps, except |
| 2575 | for `overriding-local-map' (which is ignored). | ||
| 2575 | If KEYMAP is a list of keymaps, search only those keymaps. | 2576 | If KEYMAP is a list of keymaps, search only those keymaps. |
| 2576 | 2577 | ||
| 2577 | If optional 3rd arg FIRSTONLY is non-nil, return the first key sequence found, | 2578 | If optional 3rd arg FIRSTONLY is non-nil, return the first key sequence found, |
| @@ -2586,9 +2587,17 @@ If optional 4th arg NOINDIRECT is non-nil, don't follow indirections | |||
| 2586 | to other keymaps or slots. This makes it possible to search for an | 2587 | to other keymaps or slots. This makes it possible to search for an |
| 2587 | indirect definition itself. | 2588 | indirect definition itself. |
| 2588 | 2589 | ||
| 2589 | If optional 5th arg NO-REMAP is non-nil, don't search for key sequences | 2590 | The optional 5th arg NO-REMAP alters how command remapping is handled: |
| 2590 | that invoke a command which is remapped to DEFINITION, but include the | 2591 | |
| 2591 | remapped command in the returned list. */) | 2592 | - If another command OTHER-COMMAND is remapped to DEFINITION, normally |
| 2593 | search for the bindings of OTHER-COMMAND and include them in the | ||
| 2594 | returned list. But if NO-REMAP is non-nil, include the vector | ||
| 2595 | [remap OTHER-COMMAND] in the returned list instead, without | ||
| 2596 | searching for those other bindings. | ||
| 2597 | |||
| 2598 | - If DEFINITION is remapped to OTHER-COMMAND, normally return the | ||
| 2599 | bindings for OTHER-COMMAND. But if NO-REMAP is non-nil, return the | ||
| 2600 | bindings for DEFINITION instead, ignoring its remapping. */) | ||
| 2592 | (Lisp_Object definition, Lisp_Object keymap, Lisp_Object firstonly, Lisp_Object noindirect, Lisp_Object no_remap) | 2601 | (Lisp_Object definition, Lisp_Object keymap, Lisp_Object firstonly, Lisp_Object noindirect, Lisp_Object no_remap) |
| 2593 | { | 2602 | { |
| 2594 | /* The keymaps in which to search. */ | 2603 | /* The keymaps in which to search. */ |