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: Drew Adams
Subject: RE: single-key-description no good for Japanese and Chinese chars
Date: Sat, 23 Sep 2006 15:43:11 -0700

    > People didn't care for that suggestion, so I will continue to
    > test the key itself. Perhaps I could test the key somehow with
    > `generic-char-p' (how?),
    >
    > but, as Stefan pointed out, there are also other keys that cannot be
    > trivially converted to chars.

    How about:  (char-valid-p keymap-entry)

    Since all self-insert-command keys must be valid chars if
    inserting them is going to work. This way you don't need to test
    for generic-char-p, since char-valid-p returns nil for generic
    characters unless you give it a non-nil second arg.

Thanks Jason. It's much better to test for this and a binding of
`self-insert-command' than it is to test the key name for a match to
"^Character set ".





reply via email to

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