emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rebinding international characters


From: Stefan Monnier
Subject: Re: Rebinding international characters
Date: 02 Aug 2004 10:50:08 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> Then, I think docstring and info should say something about
> that.  Info has this paragraph.

>         * `key-translation-map' overrides actual key bindings.  For
>           example, if `C-x f' has a binding in `key-translation-map',
>           that translation takes effect even though `C-x f' also has a
>           key binding in the global map.

> When I read it, I couldn't infer that
>   (define-key key-translation-map "\C-xff" ...)
> won't work.

The interaction between function-key-map, key-translation-map and normal
maps is pretty subtle.  Just writing text that gives some vague idea of
what's happening but without giving you false expectations is
very difficult.  This is because there are conflicting goals.

E.g. if you change it the way you suggest, then C-x C-x won't work any more
because the second C-x could be the first key of a C-x 8 key-translation-map
binding.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]