diff options
author | Richard M. Stallman <rms@gnu.org> | 2006-07-05 17:07:29 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2006-07-05 17:07:29 +0000 |
commit | fc0804c44752e4d7bb878ccdb77952dbca07ec79 (patch) | |
tree | ae28fd77fb5b58b020322b8fc202766b9110bdab /lispref/keymaps.texi | |
parent | c5a83cf9dda99cec64a453fede7ccb76666b26d0 (diff) | |
download | emacs-fc0804c44752e4d7bb878ccdb77952dbca07ec79.tar.gz |
(Changing Key Bindings): Cleanup.
Add xref to Key Binding Conventions.
Diffstat (limited to 'lispref/keymaps.texi')
-rw-r--r-- | lispref/keymaps.texi | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lispref/keymaps.texi b/lispref/keymaps.texi index f6779b247d0..ed03a1fc90d 100644 --- a/lispref/keymaps.texi +++ b/lispref/keymaps.texi @@ -1198,6 +1198,10 @@ convenient interfaces for these operations (@pxref{Key Binding Commands}). You can also use @code{define-key}, a more general function; then you must specify explicitly the map to change. + When choosing the key sequences for Lisp programs to rebind, please +follow the Emacs conventions for use of various keys (@pxref{Key +Binding Conventions}). + @cindex meta character key constants @cindex control character key constants In writing the key sequence to rebind, it is good to use the special @@ -1219,11 +1223,11 @@ key name). For example, @code{(control ?a)} is equivalent to @code{C-H-left}. One advantage of such lists is that the precise numeric codes for the modifier bits don't appear in compiled files. - For the functions below, an error is signaled if @var{keymap} is not -a keymap or if @var{key} is not a string or vector representing a key -sequence. You can use event types (symbols) as shorthand for events -that are lists. The @code{kbd} macro (@pxref{Key Sequences}) is a -convenient way to specify the key sequence. + The functions below signal an error if @var{keymap} is not a keymap, +or if @var{key} is not a string or vector representing a key sequence. +You can use event types (symbols) as shorthand for events that are +lists. The @code{kbd} macro (@pxref{Key Sequences}) is a convenient +way to specify the key sequence. @defun define-key keymap key binding This function sets the binding for @var{key} in @var{keymap}. (If |