Mercurial > emacs
comparison lispref/keymaps.texi @ 90200:f9a65d7ebd29
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-68
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 459-473)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 86-87)
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 07 Jul 2005 12:43:14 +0000 |
parents | bb71c6cf2009 12cb724692d3 |
children | 2d92f5c9d6ae |
comparison
equal
deleted
inserted
replaced
90199:bb71c6cf2009 | 90200:f9a65d7ebd29 |
---|---|
1436 | 1436 |
1437 If you want to use a unibyte character in the key binding, you can | 1437 If you want to use a unibyte character in the key binding, you can |
1438 construct the key sequence string using @code{multibyte-char-to-unibyte} | 1438 construct the key sequence string using @code{multibyte-char-to-unibyte} |
1439 or @code{string-make-unibyte} (@pxref{Converting Representations}). | 1439 or @code{string-make-unibyte} (@pxref{Converting Representations}). |
1440 | 1440 |
1441 @deffn Command global-set-key key definition | 1441 @deffn Command global-set-key key binding |
1442 This function sets the binding of @var{key} in the current global map | 1442 This function sets the binding of @var{key} in the current global map |
1443 to @var{definition}. | 1443 to @var{binding}. |
1444 | 1444 |
1445 @smallexample | 1445 @smallexample |
1446 @group | 1446 @group |
1447 (global-set-key @var{key} @var{definition}) | 1447 (global-set-key @var{key} @var{binding}) |
1448 @equiv{} | 1448 @equiv{} |
1449 (define-key (current-global-map) @var{key} @var{definition}) | 1449 (define-key (current-global-map) @var{key} @var{binding}) |
1450 @end group | 1450 @end group |
1451 @end smallexample | 1451 @end smallexample |
1452 @end deffn | 1452 @end deffn |
1453 | 1453 |
1454 @deffn Command global-unset-key key | 1454 @deffn Command global-unset-key key |
1480 (define-key (current-global-map) @var{key} nil) | 1480 (define-key (current-global-map) @var{key} nil) |
1481 @end group | 1481 @end group |
1482 @end smallexample | 1482 @end smallexample |
1483 @end deffn | 1483 @end deffn |
1484 | 1484 |
1485 @deffn Command local-set-key key definition | 1485 @deffn Command local-set-key key binding |
1486 This function sets the binding of @var{key} in the current local | 1486 This function sets the binding of @var{key} in the current local |
1487 keymap to @var{definition}. | 1487 keymap to @var{binding}. |
1488 | 1488 |
1489 @smallexample | 1489 @smallexample |
1490 @group | 1490 @group |
1491 (local-set-key @var{key} @var{definition}) | 1491 (local-set-key @var{key} @var{binding}) |
1492 @equiv{} | 1492 @equiv{} |
1493 (define-key (current-local-map) @var{key} @var{definition}) | 1493 (define-key (current-local-map) @var{key} @var{binding}) |
1494 @end group | 1494 @end group |
1495 @end smallexample | 1495 @end smallexample |
1496 @end deffn | 1496 @end deffn |
1497 | 1497 |
1498 @deffn Command local-unset-key key | 1498 @deffn Command local-unset-key key |