From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Keybindings in non-Latin layout Date: Tue, 05 May 2009 02:57:08 +0300 Organization: JURTA Message-ID: <87ws8wtoa3.fsf@mail.jurta.org> References: <5f0660120905020830o4a21cc3v6932025bab16c76e@mail.gmail.com> <87ocuaqu3n.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1241481615 2471 80.91.229.12 (5 May 2009 00:00:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2009 00:00:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andrey Paramonov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 05 02:00:07 2009 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 1M184s-00076Y-TE for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 02:00:07 +0200 Original-Received: from localhost ([127.0.0.1]:38348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M184s-0005jd-6S for ged-emacs-devel@m.gmane.org; Mon, 04 May 2009 20:00:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M184l-0005jH-8g for emacs-devel@gnu.org; Mon, 04 May 2009 19:59:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M184g-0005j4-OV for emacs-devel@gnu.org; Mon, 04 May 2009 19:59:58 -0400 Original-Received: from [199.232.76.173] (port=38598 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M184g-0005j1-JT for emacs-devel@gnu.org; Mon, 04 May 2009 19:59:54 -0400 Original-Received: from relay03.kiev.sovam.com ([62.64.120.201]:50174) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M184g-00010K-5C for emacs-devel@gnu.org; Mon, 04 May 2009 19:59:54 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1M184d-000PmE-5G; Tue, 05 May 2009 02:59:51 +0300 In-Reply-To: (Andrey Paramonov's message of "Sun, 3 May 2009 18:47:21 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (x86_64-pc-linux-gnu) X-Scanner-Signature: 0a21689c2f1d2e94d8aa83f1a1b60733 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:110657 Archived-At: >> This is possible with the following patch: >> http://thread.gmane.org/gmane.emacs.devel/46455/focus=46602 > > I've read the thread you pointed out, and the fact that devs consider the > current GNU Emacs behavior a bug gives some hope. From the discussion I > understand that the patch doesn't solve the problem completely, i.e. C-x b won't > work in Russian layout anyway. As you already noticed `C-x b' won't work, and a Mozilla-like patch won't help with a single characters like `b' in a key sequence. Now I see one way to fix this problem. What if we would define a parallel branch in a keymap where every defined key sequence has a copy translated according to a conversion table. So, for example, a define-key call: (define-key global-map [(control ?x) ?b] 'switch-to-buffer) would also define [(control ?Þ) ?É] with the same binding in the same keymap as if it were defined explicitly with: (define-key global-map [(control ?Þ) ?É] 'switch-to-buffer) -- Juri Linkov http://www.jurta.org/emacs/