130 |
|
|
131 |
DEFUN ("make-keymap", Fmake_keymap, Smake_keymap, 0, 1, 0, |
DEFUN ("make-keymap", Fmake_keymap, Smake_keymap, 0, 1, 0, |
132 |
doc: /* Construct and return a new keymap, of the form (keymap CHARTABLE . ALIST). |
doc: /* Construct and return a new keymap, of the form (keymap CHARTABLE . ALIST). |
133 |
CHARTABLE is a char-table that holds the bindings for the ASCII |
CHARTABLE is a char-table that holds the bindings for all characters |
134 |
characters. ALIST is an assoc-list which holds bindings for function keys, |
without modifiers. All entries in it are initially nil, meaning |
135 |
mouse events, and any other things that appear in the input stream. |
"command undefined". ALIST is an assoc-list which holds bindings for |
136 |
All entries in it are initially nil, meaning "command undefined". |
function keys, mouse events, and any other things that appear in the |
137 |
|
input stream. Initially, ALIST is nil. |
138 |
|
|
139 |
The optional arg STRING supplies a menu name for the keymap |
The optional arg STRING supplies a menu name for the keymap |
140 |
in case you use it as a menu with `x-popup-menu'. */) |
in case you use it as a menu with `x-popup-menu'. */) |
729 |
|
|
730 |
DEFUN ("map-keymap", Fmap_keymap, Smap_keymap, 2, 2, 0, |
DEFUN ("map-keymap", Fmap_keymap, Smap_keymap, 2, 2, 0, |
731 |
doc: /* Call FUNCTION for every binding in KEYMAP. |
doc: /* Call FUNCTION for every binding in KEYMAP. |
732 |
FUNCTION is called with two arguments: the event and its binding. */) |
FUNCTION is called with two arguments: the event and its binding. |
733 |
|
If KEYMAP has a parent, the parent's bindings are included as well. |
734 |
|
This works recursively: if the parent has itself a parent, then the |
735 |
|
grandparent's bindings are also included and so on. */) |
736 |
(function, keymap) |
(function, keymap) |
737 |
Lisp_Object function, keymap; |
Lisp_Object function, keymap; |
738 |
{ |
{ |
2576 |
|
|
2577 |
DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0, |
DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0, |
2578 |
doc: /* Return list of keys that invoke DEFINITION. |
doc: /* Return list of keys that invoke DEFINITION. |
2579 |
If KEYMAP is non-nil, search only KEYMAP and the global keymap. |
If KEYMAP is a keymap, search only KEYMAP and the global keymap. |
2580 |
If KEYMAP is nil, search all the currently active keymaps. |
If KEYMAP is nil, search all the currently active keymaps. |
2581 |
If KEYMAP is a list of keymaps, search only those keymaps. |
If KEYMAP is a list of keymaps, search only those keymaps. |
2582 |
|
|
2584 |
rather than a list of all possible key sequences. |
rather than a list of all possible key sequences. |
2585 |
If FIRSTONLY is the symbol `non-ascii', return the first binding found, |
If FIRSTONLY is the symbol `non-ascii', return the first binding found, |
2586 |
no matter what it is. |
no matter what it is. |
2587 |
If FIRSTONLY has another non-nil value, prefer sequences of ASCII characters, |
If FIRSTONLY has another non-nil value, prefer sequences of ASCII characters |
2588 |
and entirely reject menu bindings. |
\(or their meta variants) and entirely reject menu bindings. |
2589 |
|
|
2590 |
If optional 4th arg NOINDIRECT is non-nil, don't follow indirections |
If optional 4th arg NOINDIRECT is non-nil, don't follow indirections |
2591 |
to other keymaps or slots. This makes it possible to search for an |
to other keymaps or slots. This makes it possible to search for an |