emacs-pretest-bug
[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: Mon, 2 Aug 2004 21:44:34 +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>, Richard Stallman <address@hidden> writes:

>     It seems that (define-key key-translation-map "XYZ" ...)
>     doesn't work if the key sequence "XY" is bound to a non
>     prefix key in global or local map.  In the case of "\e$B",
>     "\e$" is bound to ispell-word (not a prefix key), so it
>     doesn't work.

> If read-key-sequence finds a real binding before it finds
> a translation binding, of course it obeys that.  Not to do so
> would lead to paradoxes.

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.

> Would removing the ordinary M-$ binding on this terminal
> be an adequate solution?

>     If it is a feature, I'll setup a dummy prefix in
>     encoded-kb.el.

> What is the advantage of the dummy prefix rather than
> deleting the binding entirely?  Either way, ESC $ won't work
> normally.  Am I missing something?

If we delete the binding, we must recover it when Encoded
kbd mode is turned off or keyboard coding system is changed
to something that doesn't use ESC $ sequence.  By supplying
a dummy prefix in encoded-kdb-mode-map (minor mode map), we
don't have to care about such recoversing.

> What type of keyboard uses ESC $ as a prefix?
> Would encoded-kb always have to eliminate it,
> or only for certain keyboards?

For instance, I use teraterm (free terminal emulator running
on Windows) to ssh login to GNU/Linux machine.  Teraterm can
be configued to send/recieve ISO-2022-JP text and that
encoding uses ESC $ B and ESC ( B.

At least for me, such an operation (i.e. toggle the Encoded
kbd mode) is not that rare because I turn it on while typing
Japanese characters using Windows input method and turn it
off while doing a work that doesn't require Japanese
handling to make normal binding of ESC $ and ESC ( enable.

---
Ken'ichi HANDA
address@hidden





reply via email to

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