From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Rebinding international characters Date: Wed, 18 Aug 2004 14:06:07 +0900 (JST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200408180506.OAA01667@etlken.m17n.org> References: <658l7dju.fsf@wanadoo.es> <200407270250.LAA07100@etlken.m17n.org> <200407280152.KAA09883@etlken.m17n.org> <200407300642.PAA15666@etlken.m17n.org> <200408021244.VAA22947@etlken.m17n.org> <200408030020.JAA24083@etlken.m17n.org> <200408031209.VAA25650@etlken.m17n.org> <2914-Tue03Aug2004220812+0300-eliz@gnu.org> <200408050046.JAA29472@etlken.m17n.org> <3c32jrng.fsf@wanadoo.es> <200408050447.NAA29917@etlken.m17n.org> <200408170714.QAA2931 NNTP-Posting-Host: deer.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 1092805605 12763 80.91.224.253 (18 Aug 2004 05:06:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2004 05:06:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 18 07:06:33 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BxIef-00063t-00 for ; Wed, 18 Aug 2004 07:06:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxIir-0008RD-7s for ged-emacs-devel@m.gmane.org; Wed, 18 Aug 2004 01:10:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BxIid-0008P5-AA for emacs-devel@gnu.org; Wed, 18 Aug 2004 01:10:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BxIic-0008NX-5w for emacs-devel@gnu.org; Wed, 18 Aug 2004 01:10:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxIic-0008NR-3k for emacs-devel@gnu.org; Wed, 18 Aug 2004 01:10:38 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BxIeL-0005v5-9R; Wed, 18 Aug 2004 01:06:14 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-6.6) with ESMTP id i7I568Ed020767; Wed, 18 Aug 2004 14:06:08 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/8.11.6) with ESMTP id i7I567U20674; Wed, 18 Aug 2004 14:06:08 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id OAA01667; Wed, 18 Aug 2004 14:06:07 +0900 (JST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Tue, 17 Aug 2004 21:34:13 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26299 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26299 In article , Richard Stallman writes: >> If you bind 8-bit characters like this in your init file, you may find it >> convenient to specify that it is unibyte. @xref{Enabling Multibyte}. >> Is that still correct? > No. > Are you saying I should delete those two lines? Yes. Actually we should delete all paragraphs after this. ---------------------------------------------------------------------- If you don't specify a keyboard coding system, that approach won't work. ... ---------------------------------------------------------------------- because specifying a unibyte code doesn't wark anymore even in --unibyte case. > The tests you did are interesting, but it is not clear to me how > they relate to the question of whether to specify that your > .emacs file is a unibyte file. Could you explain the relationship > between these two issues? In --unibyte case, read-key-sequence returns a vector of multibyte character. So, the key binding should also be done for the same character instead of unibyte code. But, as unibyte buffer can't include such a character, what we can do is only to specify a character code directly as this: (global-set-key [2289] 'some-function) But how to tell users to get the number 2289 in unibyte mode? Something like this? ESC : (read-event) RET and type a key And, this stops working in emacs-unicode because the character code is different. Another approach is to modify read_key_sequence so that it tries to find unibyte binding if multibyte binding was not found (like the way for finding lowercase/uppercase). Then, the current info is still valid. --- Ken'ichi HANDA handa@m17n.org