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: Jason Rumney
Subject: Re: single-key-description no good for Japanese and Chinese chars
Date: Sat, 23 Sep 2006 23:22:21 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666


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.





reply via email to

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