emacs-devel
[Top][All Lists]
Advanced

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

Re: kbd vs read-key-sequence


From: Stefan Monnier
Subject: Re: kbd vs read-key-sequence
Date: Fri, 02 Mar 2007 11:47:46 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

>> Hmm... so I'm still wondering why does read-key-sequence return 186 as well?

>> What does M-: (keyboard-coding-system) say?

> cp1252

>> What does M-: (char-to-string 186) say?

> "\272"

>> What does the following piece of code say:

> [2234]

> And this is weird:

>          read-char   read-key-sequence

> º              186           2234
> S-º            170           2218

Oh, so I misunderstood the original report: read-key-sequence does not
return 186, but 2234, i.e. it's working correctly.

> C-º       67109050       67109050
> C-S-º     67109034       67109034
> M-º      134217914      134217914
> S-M-º    134217898      134217898
> C-M-º    201326778      201326778
> C-S-M-º  201326762      201326762

OK, now I understand.
The fix for it is to change w32 so that it does the decoding earlier, as is
done in X, rather than via encoded-kb.  I believe that changing encoded-kb
to do the decoding on events-with-modifiers is a bit tricky because it's
not always desirable IIRC.



        Stefan




reply via email to

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