103 |
|
|
104 |
A keymap is a list whose @sc{car} is the symbol @code{keymap}. The |
A keymap is a list whose @sc{car} is the symbol @code{keymap}. The |
105 |
remaining elements of the list define the key bindings of the keymap. |
remaining elements of the list define the key bindings of the keymap. |
106 |
Use the function @code{keymapp} (see below) to test whether an object is |
A symbol whose function definition is a keymap is also a keymap. Use |
107 |
a keymap. |
the function @code{keymapp} (see below) to test whether an object is a |
108 |
|
keymap. |
109 |
|
|
110 |
Several kinds of elements may appear in a keymap, after the symbol |
Several kinds of elements may appear in a keymap, after the symbol |
111 |
@code{keymap} that begins it: |
@code{keymap} that begins it: |
203 |
@defun keymapp object |
@defun keymapp object |
204 |
This function returns @code{t} if @var{object} is a keymap, @code{nil} |
This function returns @code{t} if @var{object} is a keymap, @code{nil} |
205 |
otherwise. More precisely, this function tests for a list whose |
otherwise. More precisely, this function tests for a list whose |
206 |
@sc{car} is @code{keymap}. |
@sc{car} is @code{keymap}, or for a symbol whose function definition |
207 |
|
satisfies @code{keymapp}. |
208 |
|
|
209 |
@example |
@example |
210 |
@group |
@group |
212 |
@result{} t |
@result{} t |
213 |
@end group |
@end group |
214 |
@group |
@group |
215 |
|
(fset 'foo '(keymap)) |
216 |
|
(keymapp 'foo) |
217 |
|
@result{} t |
218 |
|
@end group |
219 |
|
@group |
220 |
(keymapp (current-global-map)) |
(keymapp (current-global-map)) |
221 |
@result{} t |
@result{} t |
222 |
@end group |
@end group |