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: Tue, 5 May 2009 18:29:14 +0000 (UTC) Message-ID: References: <5f0660120905020830o4a21cc3v6932025bab16c76e@mail.gmail.com> <87ocuaqu3n.fsf@mail.jurta.org> <87ws8wtoa3.fsf@mail.jurta.org> <87ljpcjmr6.fsf@catnip.gol.com> 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 1241548284 30990 80.91.229.12 (5 May 2009 18:31:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2009 18:31:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 05 20:31:15 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 1M1PQ9-0000Gt-Tq for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 20:31:14 +0200 Original-Received: from localhost ([127.0.0.1]:55968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1PQ9-0003BU-D4 for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 14:31:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1POW-0002dl-VC for emacs-devel@gnu.org; Tue, 05 May 2009 14:29:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1POS-0002d3-5J for emacs-devel@gnu.org; Tue, 05 May 2009 14:29:32 -0400 Original-Received: from [199.232.76.173] (port=33648 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1POR-0002d0-U2 for emacs-devel@gnu.org; Tue, 05 May 2009 14:29:27 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:36297 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 1M1POR-0001bR-GJ for emacs-devel@gnu.org; Tue, 05 May 2009 14:29:27 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M1POO-00078B-Rp for emacs-devel@gnu.org; Tue, 05 May 2009 18:29:24 +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 ; Tue, 05 May 2009 18:29:24 +0000 Original-Received: from cmr.Pent by aparamon.static.corbina.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 May 2009 18:29:24 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 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:110685 Archived-At: Stefan Monnier iro.umontreal.ca> writes: > > I think in general, a "reactive" solution, like function-key-map, or the > > special handling of shifted keys (mapping them to unshifted variants if > > not bound) would be much more robust than a method like the above > > (the problem being that it essentially stores redundant state that can > > get out of sync). > > Agreed. The only difficulty is in building the reverse mapping, and in > making it apply to all forms of the key (with arbitrary modifiers), all > this ideally without adding yet-more-ad-hoc-C-code in the > read_key_sequence monster (or even removing some of it instead). > > Ideally, the same technique can be used to map mouse-4/5 to > wheel-up/down (with or without arbitrary modifiers). > I've looked at read_key_sequence function, and it is Ж:-O indeed (given I don't have much C experience). I could however notice that it doesn't contain platform-specific code. How come NTEmacs works nicely, while Emacs on my GNU/Linux system doesn't? Is NTEmacs a build of GNU Emacs or it is a different beast? Please forgive my low level of Emacs internal knowledge ;-) Andrey