From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Paramonov Newsgroups: gmane.emacs.devel Subject: Re: Keybindings in non-Latin layout Date: Sun, 3 May 2009 18:47:21 +0000 (UTC) Message-ID: 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=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1241376629 18360 80.91.229.12 (3 May 2009 18:50:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 May 2009 18:50:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 03 20:50:20 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 1M0glX-000746-Hk for ged-emacs-devel@m.gmane.org; Sun, 03 May 2009 20:50:19 +0200 Original-Received: from localhost ([127.0.0.1]:33271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0glX-0002Hr-33 for ged-emacs-devel@m.gmane.org; Sun, 03 May 2009 14:50:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0glS-0002Gq-3a for emacs-devel@gnu.org; Sun, 03 May 2009 14:50:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0glN-0002Ad-BE for emacs-devel@gnu.org; Sun, 03 May 2009 14:50:13 -0400 Original-Received: from [199.232.76.173] (port=38131 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0glN-0002AO-8Q for emacs-devel@gnu.org; Sun, 03 May 2009 14:50:09 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:37779 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M0glM-0005eu-IB for emacs-devel@gnu.org; Sun, 03 May 2009 14:50:08 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1M0glG-0002ct-QV for emacs-devel@gnu.org; Sun, 03 May 2009 18:50:06 +0000 Original-Received: from aparamon.static.corbina.ru ([89.179.245.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 May 2009 18:50:02 +0000 Original-Received: from cmr.Pent by aparamon.static.corbina.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 May 2009 18:50:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 89.179.245.94 (Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.7) Gecko/2009030814 Iceweasel/3.0.9 (Debian-3.0.9-1)) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:110619 Archived-At: Juri Linkov jurta.org> writes: > > Is there a way to implement such a feature in GNU Emacs or it would > > only work on w32, not on GNU system? Maybe it is possible to solve > > these problems using the knowledge about character conversion > > (available in the input method)? Is it possible to use input method > > character conversion table the other direction? > > 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. I've looked at how Mozilla solved the similar issue in Firefox for GNU systems. The solution works nicely for me. The diff is available here: https://bugzilla.mozilla.org/attachment.cgi?id=289837&action=diff Possible alternative solution is to let input methods provide backward conversion tables, and make use of them when not doing self-insert-command. That should work even if (possibly, only if) the input method is off. The things to consider: 1) Do we want to keep the ability to assign keybindings to something like C-Ц? I don't think it's reasonable. 2) If we go the Mozilla way: what if one uses dvorak and qwerty X layouts in the same system? Don't know if it's an important issue though, as I don't use dvorak. I think the bug is important to fix as it's a sad example of how an application works better under non-free than under free system. Andrey