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: Fri, 30 Mar 2007 09:47:06 +0900 Message-ID: References: <45E8657D.4080202@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1175215645 21872 80.91.229.12 (30 Mar 2007 00:47:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2007 00:47:25 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, jasonr@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 30 02:47:22 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 1HX5Gz-0005ZB-Ht for ged-emacs-devel@m.gmane.org; Fri, 30 Mar 2007 02:47:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HX5Jc-0002jC-Kl for ged-emacs-devel@m.gmane.org; Thu, 29 Mar 2007 19:50:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HX5JZ-0002ip-24 for emacs-devel@gnu.org; Thu, 29 Mar 2007 20:50:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HX5JX-0002i7-J0 for emacs-devel@gnu.org; Thu, 29 Mar 2007 20:50:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HX5JX-0002i4-EA for emacs-devel@gnu.org; Thu, 29 Mar 2007 19:49:59 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HX5Gq-00021X-Hw; Thu, 29 Mar 2007 20:47:13 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l2U0l7Sl006670; Fri, 30 Mar 2007 09:47:07 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l2U0l6Md005838; Fri, 30 Mar 2007 09:47:06 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id l2U0l6wu023229; Fri, 30 Mar 2007 09:47:06 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.63) (envelope-from ) id 1HX5Gk-0007ho-2M; Fri, 30 Mar 2007 09:47:06 +0900 In-reply-to: (message from Richard Stallman on Thu, 29 Mar 2007 11:32:38 -0400) 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:68766 Archived-At: In article , Richard Stallman writes: > I think it's a bug. It surely handles the =C3=A9 the same > regardless of the modifiers. In both cases, it doesn't > decode the key event \351 to =C3=A9. Windows code ask > encoded-kbd-mode to decode it. And, although > Encoded-kbd-mode can decode \351 to =C3=A9, it can't decode > M-\351 to M-=C3=A9. > That sounds like a clear bug in encoded-kbd-mode. Why do you think so? The task of encoded-kbd-mode is to do "decode-coding" according to keyboard-coding-system, and "decode-coding" is to decode a byte sequence into a character sequence. But M-\351 is not a byte. > Can you fix it easily? It's possible but not easy. As the other people say, I strongly recommend to add something like the following text in etc/PROBLEMS. On Windows, to bind a non-ASCII character with some modifier to a command, you must specify a raw byte code. For instance, if you want to bind meta-a-grave to a command: (global-set-key [?\M-\340] ...) That is for the case of Latin-1 environment where the byte code of a-grave is \340. --- Kenichi Handa handa@m17n.org