From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Keybindings in non-Latin layout Date: Tue, 05 May 2009 00:41:45 -0400 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=us-ascii X-Trace: ger.gmane.org 1241498535 609 80.91.229.12 (5 May 2009 04:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2009 04:42:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 05 06:42:06 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 1M1CTl-000555-JS for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 06:42:06 +0200 Original-Received: from localhost ([127.0.0.1]:46855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1CTk-000488-EB for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 00:42:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1CTc-000483-HD for emacs-devel@gnu.org; Tue, 05 May 2009 00:41:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1CTX-00047r-My for emacs-devel@gnu.org; Tue, 05 May 2009 00:41:55 -0400 Original-Received: from [199.232.76.173] (port=40999 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1CTX-00047o-FE for emacs-devel@gnu.org; Tue, 05 May 2009 00:41:51 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:59469 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1CTW-0000IT-2a; Tue, 05 May 2009 00:41:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhoFAMNf/0nO+IYe/2dsb2JhbACBUMx2g30FhUk X-IronPort-AV: E=Sophos;i="4.40,295,1238990400"; d="scan'208";a="37997219" Original-Received: from 206-248-134-30.dsl.teksavvy.com (HELO pastel.home) ([206.248.134.30]) by ironport2-out.teksavvy.com with ESMTP; 05 May 2009 00:41:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3EE457FDC; Tue, 5 May 2009 00:41:45 -0400 (EDT) In-Reply-To: <87ljpcjmr6.fsf@catnip.gol.com> (Miles Bader's message of "Tue, 05 May 2009 11:40:13 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) 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:110672 Archived-At: > 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). Stefan