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: Fri, 20 Aug 2004 09:06:44 +0900 (JST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200408200006.JAA06036@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.Q 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 1092960461 25644 80.91.224.253 (20 Aug 2004 00:07:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Aug 2004 00:07:41 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 20 02:07:31 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 1BxwwN-0001H3-00 for ; Fri, 20 Aug 2004 02:07:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxx0e-0003ac-Hl for ged-emacs-devel@m.gmane.org; Thu, 19 Aug 2004 20:11:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bxx0P-0003Yn-PI for emacs-devel@gnu.org; Thu, 19 Aug 2004 20:11:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bxx0M-0003XH-Nl for emacs-devel@gnu.org; Thu, 19 Aug 2004 20:11:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxx0M-0003Wn-Ie for emacs-devel@gnu.org; Thu, 19 Aug 2004 20:11: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 1Bxwvi-0005vh-G8; Thu, 19 Aug 2004 20:06:51 -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 i7K06jEd020553; Fri, 20 Aug 2004 09:06:45 +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 i7K06iU20802; Fri, 20 Aug 2004 09:06:44 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA06036; Fri, 20 Aug 2004 09:06:44 +0900 (JST) Original-To: monnier@iro.umontreal.ca In-reply-to: (message from Stefan Monnier on 19 Aug 2004 09:41:55 -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:26334 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26334 In article , Stefan Monnier writes: >> But, as function-key-map can't override global/local map, >> ESC $ ... can't be handled. > Huh? Why not? You have to bind it to an empty map anyway, no? > Or did you find some other workaround? Currently, this works (typing "ESC $ a" inserts `A'): (local-set-key "\e$a" 'ignore) (define-key key-translation-map "\e$a" [?A]) but this doesn't work: (local-set-key "\e$a" 'ignore) (define-key function-key-map "\e$a" [?A]) That is what I meant in "function-key-map can't override global/local map". > PS: I personally don't think it's a good idea to use function-key-map for > that (I think the encoded-kdb translation should be "strong" > (i.e. not overridable other than via things like `read-byte'), just like > it is under X11). > It is very unusual for people to rebind non-ASCII characters (at least > this is my impression based on the frequency of such questions in > gnu.emacs.help) and it has always been tricky to do and brittle (based > on the lack of useful and correct answers those rare questions > received), so I think that the current situation is already an > improvement and making it work for unibyte modes is not important. I agree. So, we should adjust info to the current behaviour instead of changing the code. --- Ken'ichi HANDA handa@m17n.org