aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorRichard M. Stallman2005-08-18 15:02:16 +0000
committerRichard M. Stallman2005-08-18 15:02:16 +0000
commitefaf8fa4f6b33b92a86362b1dd772c6ec4e01a98 (patch)
tree68aac366a29479ebd2e2959cd3d5de6c42a14d42 /man
parentc04a2eab333757b44fa8d1f8e81d54667e7e93f0 (diff)
downloademacs-efaf8fa4f6b33b92a86362b1dd772c6ec4e01a98.tar.gz
emacs-efaf8fa4f6b33b92a86362b1dd772c6ec4e01a98.zip
(Swapping keys): Xref for normal-erase-is-backspace-mode, not keyboard-translate.
Diffstat (limited to 'man')
-rw-r--r--man/faq.texi13
1 files changed, 8 insertions, 5 deletions
diff --git a/man/faq.texi b/man/faq.texi
index f7efa3c8708..cb1ad231e50 100644
--- a/man/faq.texi
+++ b/man/faq.texi
@@ -4637,9 +4637,9 @@ Good question!
4637@cindex Keys, swapping 4637@cindex Keys, swapping
4638@cindex @code{keyboard-translate} 4638@cindex @code{keyboard-translate}
4639 4639
4640In Emacs 19, you can swap two keys (or key sequences) by using the 4640You can swap two keys (or key sequences) by using the
4641@code{keyboard-translate} function. For example, to turn @kbd{C-h} into 4641@code{keyboard-translate} function. For example, to turn @kbd{C-h}
4642@key{DEL} and @key{DEL} to @kbd{C-h}, use 4642into @key{DEL} and @key{DEL} to @kbd{C-h}, use
4643 4643
4644@lisp 4644@lisp
4645(keyboard-translate ?\C-h ?\C-?) ; translate `C-h' to DEL 4645(keyboard-translate ?\C-h ?\C-?) ; translate `C-h' to DEL
@@ -4651,6 +4651,11 @@ The first key sequence of the pair after the function identifies what is
4651produced by the keyboard; the second, what is matched for in the 4651produced by the keyboard; the second, what is matched for in the
4652keymaps. 4652keymaps.
4653 4653
4654However, in the specific case of @kbd{C-h} and @key{DEL}, you should
4655toggle @code{normal-erase-is-backspace-mode} instead of calling
4656@code{keyboard-translate}. @inforef{DEL Does Not Delete, DEL Does Not Delete,
4657emacs}.
4658
4654Keyboard translations are not the same as key bindings in keymaps. 4659Keyboard translations are not the same as key bindings in keymaps.
4655Emacs contains numerous keymaps that apply in different situations, but 4660Emacs contains numerous keymaps that apply in different situations, but
4656there is only one set of keyboard translations, and it applies to every 4661there is only one set of keyboard translations, and it applies to every
@@ -4659,8 +4664,6 @@ take place at the lowest level of input processing; the keys that are
4659looked up in keymaps contain the characters that result from keyboard 4664looked up in keymaps contain the characters that result from keyboard
4660translation. 4665translation.
4661 4666
4662@inforef{Keyboard Translations, Keyboard Translations, emacs}.
4663
4664@node Producing C-XXX with the keyboard, No Meta key, Swapping keys, Key bindings 4667@node Producing C-XXX with the keyboard, No Meta key, Swapping keys, Key bindings
4665@section How do I produce C-XXX with my keyboard? 4668@section How do I produce C-XXX with my keyboard?
4666@cindex Producing control characters 4669@cindex Producing control characters