Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
efaf8fa4
Commit
efaf8fa4
authored
Aug 18, 2005
by
Richard M. Stallman
Browse files
(Swapping keys): Xref for normal-erase-is-backspace-mode, not keyboard-translate.
parent
c04a2eab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
man/faq.texi
man/faq.texi
+8
-5
No files found.
man/faq.texi
View file @
efaf8fa4
...
...
@@ -4637,9 +4637,9 @@ Good question!
@cindex Keys, swapping
@cindex @code{keyboard-translate}
In Emacs 19, y
ou 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
Y
ou 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,6 +4651,11 @@ The first key sequence of the pair after the function identifies what is
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
...
...
@@ -4659,8 +4664,6 @@ 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?
@cindex Producing control characters
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment