diff options
| author | Luc Teirlinck | 2004-08-08 00:00:07 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-08-08 00:00:07 +0000 |
| commit | e4e66c94cbd659c6034444c69eae1a549e21b7cd (patch) | |
| tree | 90d2b6233319af1863faafaa5238977e9a0f518f | |
| parent | 1725a7c935d4d381d0bb1216b75e3ac786fcad49 (diff) | |
| download | emacs-e4e66c94cbd659c6034444c69eae1a549e21b7cd.tar.gz emacs-e4e66c94cbd659c6034444c69eae1a549e21b7cd.zip | |
(Translating Input): Only non-prefix bindings in `key-translation-map'
override actual key bindings. Warn about possible indirect effect of
actual key bindings on non-prefix bindings in `key-translation-map'.
| -rw-r--r-- | lispref/os.texi | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lispref/os.texi b/lispref/os.texi index 3e1b93339ad..42a0613bfec 100644 --- a/lispref/os.texi +++ b/lispref/os.texi | |||
| @@ -1686,12 +1686,18 @@ finished; it receives the results of translation by | |||
| 1686 | @code{function-key-map}. | 1686 | @code{function-key-map}. |
| 1687 | 1687 | ||
| 1688 | @item | 1688 | @item |
| 1689 | @code{key-translation-map} overrides actual key bindings. For example, | 1689 | Non-prefix bindings in @code{key-translation-map} override actual key |
| 1690 | if @kbd{C-x f} has a binding in @code{key-translation-map}, that | 1690 | bindings. For example, if @kbd{C-x f} has a non-prefix binding in |
| 1691 | translation takes effect even though @kbd{C-x f} also has a key binding | 1691 | @code{key-translation-map}, that translation takes effect even though |
| 1692 | in the global map. | 1692 | @kbd{C-x f} also has a key binding in the global map. |
| 1693 | @end itemize | 1693 | @end itemize |
| 1694 | 1694 | ||
| 1695 | Note however that actual key bindings can have an effect on | ||
| 1696 | @code{key-translation-map}, even though they are overridden by it. | ||
| 1697 | Indeed, actual key bindings override @code{function-key-map} and thus | ||
| 1698 | may alter the key sequence that @code{key-translation-map} receives. | ||
| 1699 | Clearly, it is better to avoid to avoid this type of situation. | ||
| 1700 | |||
| 1695 | The intent of @code{key-translation-map} is for users to map one | 1701 | The intent of @code{key-translation-map} is for users to map one |
| 1696 | character set to another, including ordinary characters normally bound | 1702 | character set to another, including ordinary characters normally bound |
| 1697 | to @code{self-insert-command}. | 1703 | to @code{self-insert-command}. |