diff options
author | Richard M. Stallman <rms@gnu.org> | 2003-01-13 07:59:04 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2003-01-13 07:59:04 +0000 |
commit | 48bf63e33d3d89655874718297cc724f71412f1f (patch) | |
tree | 30137a4ed101a91581ce48c20cb314c07b2e27c8 /lispref | |
parent | 978a673fa45584fea87ca5d46655b3961f9137bd (diff) | |
download | emacs-48bf63e33d3d89655874718297cc724f71412f1f.tar.gz |
(Changing Key Bindings) <define-key>: Mention how to define a default binding.
Diffstat (limited to 'lispref')
-rw-r--r-- | lispref/keymaps.texi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lispref/keymaps.texi b/lispref/keymaps.texi index c087b968793..5102800d15e 100644 --- a/lispref/keymaps.texi +++ b/lispref/keymaps.texi @@ -1063,6 +1063,10 @@ in another keymap reached from @var{keymap}.) The argument meaningful. (For a list of meaningful types, see @ref{Key Lookup}.) The value returned by @code{define-key} is @var{binding}. +If @var{key} is @code{[t]}, this sets the default binding in +@var{keymap}. When an event has no binding of its own, the Emacs +command loop uses the keymap's default binding, if there is one. + @cindex invalid prefix key error @cindex key sequence error Every prefix of @var{key} must be a prefix key (i.e., bound to a keymap) @@ -1072,8 +1076,8 @@ key so that the rest of @var{key} can be defined as specified. If there was previously no binding for @var{key} in @var{keymap}, the new binding is added at the beginning of @var{keymap}. The order of -bindings in a keymap makes no difference in most cases, but it does -matter for menu keymaps (@pxref{Menu Keymaps}). +bindings in a keymap makes no difference for keyboard input, but it +does matter for menu keymaps (@pxref{Menu Keymaps}). @end defun Here is an example that creates a sparse keymap and makes a number of |