emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

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