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: Binding C-i breaks TAB bindings (was bug#13861) Date: Mon, 04 Mar 2013 13:56:59 -0500 Message-ID: References: <87a9qklpoa.fsf@kanis.fr> <87boazveav.fsf_-_@kanis.fr> <871ubv6o7h.fsf@kanis.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362423426 17578 80.91.229.3 (4 Mar 2013 18:57:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Mar 2013 18:57:06 +0000 (UTC) Cc: Emacs Development List To: Ivan Kanis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 04 19:57:29 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCaZj-0001wc-FH for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2013 19:57:27 +0100 Original-Received: from localhost ([::1]:35148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCaZO-00006O-17 for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2013 13:57:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCaZK-00006F-IM for emacs-devel@gnu.org; Mon, 04 Mar 2013 13:57:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCaZJ-000294-Dk for emacs-devel@gnu.org; Mon, 04 Mar 2013 13:57:02 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:44626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCaZJ-000290-9N; Mon, 04 Mar 2013 13:57:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLvL/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFFxLvL/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="3000158" Original-Received: from 69-196-187-203.dsl.teksavvy.com (HELO pastel.home) ([69.196.187.203]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Mar 2013 13:56:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id F29826BF75; Mon, 4 Mar 2013 13:56:59 -0500 (EST) In-Reply-To: <871ubv6o7h.fsf@kanis.fr> (Ivan Kanis's message of "Mon, 04 Mar 2013 18:59:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157511 Archived-At: >> In any case is not overridden. It's just that you don't have any >> binding for so function-key-map makes Emacs fallback on the >> C-i binding. > I am trying to free up C-i for my nefarious purpose. In a tty, TAB and C-i can't be distinguished (at least, most/all terminal emulators will send the exact same byte sequences in both cases by default), so there isn't much you can do there. But in a GUI session, you could add something like (define-key input-decode-map [?\C-i] [control-i]) This way, `tab' will work the same as ever, but C-i will now generate a new event `control-i' which you can bind to any command you like. Stefan