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: coding systems and input methods are non-intuitive stuff Date: Tue, 30 Jan 2007 21:46:08 +0900 Message-ID: References: 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 1170161196 27630 80.91.229.12 (30 Jan 2007 12:46:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Jan 2007 12:46:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 30 13:46:33 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 1HBsNd-00042s-2N for ged-emacs-devel@m.gmane.org; Tue, 30 Jan 2007 13:46:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBsNc-0004rD-Jr for ged-emacs-devel@m.gmane.org; Tue, 30 Jan 2007 07:46:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBsNP-0004lR-Lj for emacs-devel@gnu.org; Tue, 30 Jan 2007 07:46:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBsNM-0004hi-Pt for emacs-devel@gnu.org; Tue, 30 Jan 2007 07:46:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBsNM-0004hX-EY for emacs-devel@gnu.org; Tue, 30 Jan 2007 07:46:16 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HBsNL-0005ET-Md for emacs-devel@gnu.org; Tue, 30 Jan 2007 07:46:16 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id l0UCk9Do005075; Tue, 30 Jan 2007 21:46:09 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id l0UCk9M8025456; Tue, 30 Jan 2007 21:46:09 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id l0UCk8VP025887; Tue, 30 Jan 2007 21:46:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.63) (envelope-from ) id 1HBsNE-00082G-LM; Tue, 30 Jan 2007 21:46:08 +0900 In-reply-to: (lekktu@gmail.com) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.93 (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:65634 Archived-At: Very sorry for the late response. In article , "= Juanma Barranquero" writes: > C-x b *scratch* RET > C-x RET f latin-1 RET ; buffer coding system =3D latin-1 > C-u C-\ romanian-prefix RET ; input method: romanian-prefix > ,s ; character: =C5=9F (2362, #o4472, #x93a, > ; U+015F) > M-x quail-show-key RET ; To input `=C5=9F', type ",s" > > C-x RET f utf-8 RET ; buffer coding system =3D utf-8 > ; input method: the same as before > ,s ; character: =C5=9F (331903, #o1210177, > ; #x5107f, U+015F) > M-x quail-show-key RET ; =C5=9F can't be input by the current > ; input method > Now, I understand that the buffer code for these characters is not the > same... but it is quite weird nonetheless to input a character with > the current input method, and afterwards be told that it "can't be > input by the current input method". The reason why the second quail-show-key fails is that the input method is going to insert latin-2 character but as the buffer-file-coding-system is changed to utf-8, the character is translated by translation-table-for-input into mule-unicode-0100-24ff character. Unfortunately as the data structure of the input method still contains only latin-2 character, the current code of quail-show-key thinks the translated character is not in the data structure. I'm now trying to find a good way to solve this problem. --- Kenichi Handa handa@m17n.org