[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rebinding international characters
From: |
Kenichi Handa |
Subject: |
Re: Rebinding international characters |
Date: |
Fri, 20 Aug 2004 09:06:44 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Stefan Monnier <address@hidden> writes:
>> But, as function-key-map can't override global/local map,
>> ESC $ ... can't be handled.
> Huh? Why not? You have to bind it to an empty map anyway, no?
> Or did you find some other workaround?
Currently, this works (typing "ESC $ a" inserts `A'):
(local-set-key "\e$a" 'ignore)
(define-key key-translation-map "\e$a" [?A])
but this doesn't work:
(local-set-key "\e$a" 'ignore)
(define-key function-key-map "\e$a" [?A])
That is what I meant in "function-key-map can't override
global/local map".
> PS: I personally don't think it's a good idea to use function-key-map for
> that (I think the encoded-kdb translation should be "strong"
> (i.e. not overridable other than via things like `read-byte'), just like
> it is under X11).
> It is very unusual for people to rebind non-ASCII characters (at least
> this is my impression based on the frequency of such questions in
> gnu.emacs.help) and it has always been tricky to do and brittle (based
> on the lack of useful and correct answers those rare questions
> received), so I think that the current situation is already an
> improvement and making it work for unibyte modes is not important.
I agree. So, we should adjust info to the current behaviour
instead of changing the code.
---
Ken'ichi HANDA
address@hidden
- Re: Rebinding international characters, (continued)
- Re: Rebinding international characters, Stefan, 2004/08/17
- Re: Rebinding international characters, Richard Stallman, 2004/08/17
- Re: Rebinding international characters, Richard Stallman, 2004/08/17
- Re: Rebinding international characters, Kenichi Handa, 2004/08/18
- Re: Rebinding international characters, Stefan Monnier, 2004/08/18
- Re: Rebinding international characters, Kenichi Handa, 2004/08/18
- Re: Rebinding international characters, Stefan Monnier, 2004/08/19
- Re: Rebinding international characters,
Kenichi Handa <=
- Re: Rebinding international characters, Stefan Monnier, 2004/08/20
- Re: Rebinding international characters, Kenichi Handa, 2004/08/20
- Re: Rebinding international characters, Stefan Monnier, 2004/08/21
- Re: Rebinding international characters, Kenichi Handa, 2004/08/22
- Re: Rebinding international characters, Stefan Monnier, 2004/08/22
- Re: Rebinding international characters, Oliver Scholz, 2004/08/20
- Re: Rebinding international characters, Stefan Monnier, 2004/08/20
- Re: Rebinding international characters, Oliver Scholz, 2004/08/21