diff options
| -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 | |||
| 1198 | Commands}). You can also use @code{define-key}, a more general | 1198 | Commands}). You can also use @code{define-key}, a more general |
| 1199 | function; then you must specify explicitly the map to change. | 1199 | function; then you must specify explicitly the map to change. |
| 1200 | 1200 | ||
| 1201 | When choosing the key sequences for Lisp programs to rebind, please | ||
| 1202 | follow the Emacs conventions for use of various keys (@pxref{Key | ||
| 1203 | Binding Conventions}). | ||
| 1204 | |||
| 1201 | @cindex meta character key constants | 1205 | @cindex meta character key constants |
| 1202 | @cindex control character key constants | 1206 | @cindex control character key constants |
| 1203 | In writing the key sequence to rebind, it is good to use the special | 1207 | 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 | |||
| 1219 | @code{C-H-left}. One advantage of such lists is that the precise | 1223 | @code{C-H-left}. One advantage of such lists is that the precise |
| 1220 | numeric codes for the modifier bits don't appear in compiled files. | 1224 | numeric codes for the modifier bits don't appear in compiled files. |
| 1221 | 1225 | ||
| 1222 | For the functions below, an error is signaled if @var{keymap} is not | 1226 | The functions below signal an error if @var{keymap} is not a keymap, |
| 1223 | a keymap or if @var{key} is not a string or vector representing a key | 1227 | or if @var{key} is not a string or vector representing a key sequence. |
| 1224 | sequence. You can use event types (symbols) as shorthand for events | 1228 | You can use event types (symbols) as shorthand for events that are |
| 1225 | that are lists. The @code{kbd} macro (@pxref{Key Sequences}) is a | 1229 | lists. The @code{kbd} macro (@pxref{Key Sequences}) is a convenient |
| 1226 | convenient way to specify the key sequence. | 1230 | way to specify the key sequence. |
| 1227 | 1231 | ||
| 1228 | @defun define-key keymap key binding | 1232 | @defun define-key keymap key binding |
| 1229 | This function sets the binding for @var{key} in @var{keymap}. (If | 1233 | This function sets the binding for @var{key} in @var{keymap}. (If |