aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-28 21:05:54 +0000
committerRichard M. Stallman2005-03-28 21:05:54 +0000
commit617f06a8c277be4fee8b45cba73f544ed0451040 (patch)
treeaaee4016caa93302ec0c01d87b369075a66c2344
parentff994d963a52d9d2ade4a95c91cda778aed256e4 (diff)
downloademacs-617f06a8c277be4fee8b45cba73f544ed0451040.tar.gz
emacs-617f06a8c277be4fee8b45cba73f544ed0451040.zip
(Function Keys): Document kp- event types and keypad-setup package.
-rw-r--r--man/custom.texi21
1 files changed, 21 insertions, 0 deletions
diff --git a/man/custom.texi b/man/custom.texi
index 6c5c26b3451..30bac3bccf2 100644
--- a/man/custom.texi
+++ b/man/custom.texi
@@ -1636,6 +1636,27 @@ word:
1636(global-set-key [H-M-right] 'forward-word) 1636(global-set-key [H-M-right] 'forward-word)
1637@end example 1637@end example
1638 1638
1639@cindex keypad
1640 Many keyboards have a ``numeric keypad'' on the right hand side.
1641The numeric keys in the keypad double up as cursor motion keys,
1642toggled by a key labelled @samp{Num Lock}. By default, Emacs
1643translates these keys to the corresponding keys in the main keyboard
1644(@pxref{Keyboard Translations}). For example, when @samp{Num Lock} is
1645on, the key labelled @samp{8} on the numeric keypad produces
1646@code{kp-8}, which is translated to @kbd{8}; when @samp{Num Lock} is
1647off, the same key produces @code{kp-up}, which is translated to
1648@key{UP}. If you rebind a key such as @kbd{8} or @key{UP}, it affects
1649the equivalent keypad key too. However, if you rebind a @samp{kp-}
1650key directly, that won't affect its non-keypad equivalent.
1651
1652 Emacs provides a convenient method for binding the numeric keypad
1653keys, using the variables @code{keypad-setup},
1654@code{keypad-numlock-setup}, @code{keypad-shifted-setup}, and
1655@code{keypad-numlock-shifted-setup}. These can be found in the
1656@samp{keyboard} customization group (@pxref{Easy Customization}). You
1657can rebind the keys to perform other tasks, such as issuing numeric
1658prefix arguments.
1659
1639@node Named ASCII Chars 1660@node Named ASCII Chars
1640@subsection Named @acronym{ASCII} Control Characters 1661@subsection Named @acronym{ASCII} Control Characters
1641 1662