latin 1 (and other) keysyms

Christophe Rhodes <[email protected]> Tue, 14 Mar 2006 11:14:45 +0000
Newsgroups gmane.lisp.clx.devel
Message-ID <[email protected]>
Hi,

I've added a couple of patches to my repository at
<http://common-lisp.net/~crhodes/clx>, one is very simple, and just
implements keysym-sets that have been defined since the last time
anyone maintained CLX code.  The other implements latin1 character
keysyms for keysyms between 160 and 255, for sbcl only.

From SBCL's point of view, I think that the right thing to do is to
define as many keysyms as possible as characters (if :sb-unicode is
on), but of course this has the potential to break legacy and even
not-so-legacy code; in fact, merely defining keysym #xff1c as #\Escape
breaks climacs' handling of escape-as-sticky-meta.

(I left a comment explaining why I implemented the latin1 keysyms for
sbcl only, but briefly: it is because some other lisps either have
locale-dependent character definitions or completely opaque ones; it
would be bad, say, to translate the currency keysym into a character
with CODE-CHAR 164 if the underlying lisp thinks that this is in fact
the euro character (because, say, it is running in an iso-8859-15
locale)).

Cheers,

Christophe

_______________________________________________
Portable-clx mailing list
[email protected]
http://lists.metacircles.com/cgi-bin/mailman/listinfo/portable-clx
See http://www.cliki.net/clx for darcs URL(s)