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

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

Re: single-key-description no good for Japanese and Chinese chars


From: Kenichi Handa
Subject: Re: single-key-description no good for Japanese and Chinese chars
Date: Sun, 24 Sep 2006 20:31:47 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, "Drew Adams" <address@hidden> writes:

>     I now think that single-key-description should signal an
>     error for a generic character because it's not a key.

> Would it be possible for someone to let me know if this change gets made (or
> if the description returned for such pseudo-keys gets changed)? I will then
> adapt my code accordingly. Thx.

If you are going to modify your code, you should do a check
something like this before calling single-key-description:
  (map-keymap #'(lambda (event definition)
                  (if (and (integerp event) (generic-char-p event))
                      ;; do something reasonable for a
                      ;; generic character.
[...]

Then, your code should be free from the change of
single-key-description.

---
Kenichi Handa
address@hidden




reply via email to

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