[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/man/faq.texi
From: |
Richard M . Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/man/faq.texi |
Date: |
Thu, 18 Aug 2005 11:02:17 -0400 |
Index: emacs/man/faq.texi
diff -c emacs/man/faq.texi:1.66 emacs/man/faq.texi:1.67
*** emacs/man/faq.texi:1.66 Thu Aug 11 19:49:52 2005
--- emacs/man/faq.texi Thu Aug 18 15:02:16 2005
***************
*** 4637,4645 ****
@cindex Keys, swapping
@cindex @code{keyboard-translate}
! In Emacs 19, you can swap two keys (or key sequences) by using the
! @code{keyboard-translate} function. For example, to turn @kbd{C-h} into
! @key{DEL} and @key{DEL} to @kbd{C-h}, use
@lisp
(keyboard-translate ?\C-h ?\C-?) ; translate `C-h' to DEL
--- 4637,4645 ----
@cindex Keys, swapping
@cindex @code{keyboard-translate}
! You can swap two keys (or key sequences) by using the
! @code{keyboard-translate} function. For example, to turn @kbd{C-h}
! into @key{DEL} and @key{DEL} to @kbd{C-h}, use
@lisp
(keyboard-translate ?\C-h ?\C-?) ; translate `C-h' to DEL
***************
*** 4651,4656 ****
--- 4651,4661 ----
produced by the keyboard; the second, what is matched for in the
keymaps.
+ However, in the specific case of @kbd{C-h} and @key{DEL}, you should
+ toggle @code{normal-erase-is-backspace-mode} instead of calling
+ @code{keyboard-translate}. @inforef{DEL Does Not Delete, DEL Does Not
Delete,
+ emacs}.
+
Keyboard translations are not the same as key bindings in keymaps.
Emacs contains numerous keymaps that apply in different situations, but
there is only one set of keyboard translations, and it applies to every
***************
*** 4658,4665 ****
take place at the lowest level of input processing; the keys that are
looked up in keymaps contain the characters that result from keyboard
translation.
-
- @inforef{Keyboard Translations, Keyboard Translations, emacs}.
@node Producing C-XXX with the keyboard, No Meta key, Swapping keys, Key
bindings
@section How do I produce C-XXX with my keyboard?
--- 4663,4668 ----