From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: kbd vs read-key-sequence Date: Mon, 02 Apr 2007 21:31:38 +0900 Message-ID: References: <4610139D.3060909@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1175517169 20456 80.91.229.12 (2 Apr 2007 12:32:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2007 12:32:49 +0000 (UTC) Cc: jasonr@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 02 14:32:44 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HYLiE-0002Yr-7o for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2007 14:32:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYLlF-0004Zm-Qv for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2007 08:35:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYLkV-0003Qd-Fs for emacs-devel@gnu.org; Mon, 02 Apr 2007 08:35:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYLkQ-0003Jg-Ni for emacs-devel@gnu.org; Mon, 02 Apr 2007 08:35:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYLkQ-0003JM-Dn for emacs-devel@gnu.org; Mon, 02 Apr 2007 08:34:58 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYLhJ-0006Nd-TH; Mon, 02 Apr 2007 08:31:46 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l32CVdNj029075; Mon, 2 Apr 2007 21:31:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l32CVdhA006881; Mon, 2 Apr 2007 21:31:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id l32CVcZ5019677; Mon, 2 Apr 2007 21:31:38 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.63) (envelope-from ) id 1HYLhC-0002GR-T7; Mon, 02 Apr 2007 21:31:38 +0900 In-reply-to: (message from Eli Zaretskii on Mon, 02 Apr 2007 14:58:40 +0300) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.95 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68932 Archived-At: In article , Eli Zaretskii writes: > > Then, can't we use it to get a Unicode character code from > > keyevent(s) and do something like this? > > > > MultiByteToWideChar (codepage, 0, inbuf, inlen, outbuf, outlen) > > lisp_char = call2 (intern ("decode-char"), intern ("ucs"), > > make_number (outbuf[0])); > I don't think this is the right way of getting Unicode codepoints for > keyboard input on Windows; see > http://msdn2.microsoft.com/en-us/library/ms646267.aspx > (under "Nonsystem Character Messages"), and > http://msdn2.microsoft.com/en-us/library/ms633586.aspx > for the gory details. Ummm, by reading that page briefly, it seems that getting Unicode codepoints is much easier. > But surely, such a drastic change in the w32 keyboard input processing > is not something to consider before the release! Especially when the > problems we are trying to fix are so minor, almost invisible. I basicly agree. But, such a change is better than managing to modify encoded-kbd-mode to do what it shouldn't do. --- Kenichi Handa handa@m17n.org