From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9751: 23.3; Alternative Keyboard Feature/Bug Date: Thu, 20 Oct 2011 03:12:31 +0300 Organization: JURTA Message-ID: <87r528pllc.fsf@mail.jurta.org> References: <675A64DA-C90A-4DBC-A3DB-C564A318B70F@cs.duke.edu> <0DC129AB-1830-4EED-A487-1C4CDCE4CB46@cs.duke.edu> <83sjmvjxps.fsf@gnu.org> <672DC73F-99F7-4CDC-86DA-318FCA8DEB70@cs.duke.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319069708 17822 80.91.229.12 (20 Oct 2011 00:15:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2011 00:15:08 +0000 (UTC) Cc: lekktu@gmail.com, 9751@debbugs.gnu.org, Nikos Pitsianis To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 20 02:15:03 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGgHm-0001gJ-DB for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Oct 2011 02:15:02 +0200 Original-Received: from localhost ([::1]:39116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGgHl-00006c-6C for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 20:15:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGgHi-00006L-9Y for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 20:14:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGgHh-0005F8-1G for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 20:14:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGgHg-0005F1-Sw for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 20:14:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGgIj-0008QW-IC for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 20:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Oct 2011 00:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9751-submit@debbugs.gnu.org id=B9751.131906974832372 (code B ref 9751); Thu, 20 Oct 2011 00:16:01 +0000 Original-Received: (at 9751) by debbugs.gnu.org; 20 Oct 2011 00:15:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGgIW-0008Q4-7z for submit@debbugs.gnu.org; Wed, 19 Oct 2011 20:15:48 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGgIU-0008Px-7V for 9751@debbugs.gnu.org; Wed, 19 Oct 2011 20:15:47 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id E49E56E806B; Wed, 19 Oct 2011 17:14:39 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id AC1BDAC9400A; Wed, 19 Oct 2011 17:14:38 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 14 Oct 2011 14:49:26 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 Oct 2011 20:16:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52887 Archived-At: >> What is the way in emacs to alias Ctr-chi to Ctr-x ? > > I'd do it in input-decode-map: > > (define-key input-decode-map [?\C-=CF=87] [?\C-x]) > (define-key input-decode-map [?\C-=CF=88] [?\C-s]) The problem is that this method doesn't work for self-inserting character= s, i.e. to be able to handle keybindings that contain characters without modifiers like e.g. `C-x b' we can't use (define-key input-decode-map [?=CE=B2] [?b]) because it will translate all plain self-inserting characters, and this is not desirable. So users have to bother about rebinding all keybindings individually like (define-key input-decode-map [?\C-=CF=87 ?=CE=B2] [?\C-x ?b]) ... I have no idea how to cover all keybindings automatically.