/[emacs]/emacs/lispref/keymaps.texi
ViewVC logotype

Diff of /emacs/lispref/keymaps.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by rms, Mon Jan 13 07:59:04 2003 UTC revision 1.41 by rms, Sat Jan 25 19:45:16 2003 UTC
# Line 103  for details. Line 103  for details.
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:
# Line 202  lisp-mode-map Line 203  lisp-mode-map
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
# Line 210  otherwise.  More precisely, this functio Line 212  otherwise.  More precisely, this functio
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

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26