all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ivan Kanis <banana@kanis.fr>
Cc: Emacs Development List <emacs-devel@gnu.org>
Subject: Re: Binding C-i breaks TAB bindings (was bug#13861)
Date: Mon, 04 Mar 2013 13:56:59 -0500	[thread overview]
Message-ID: <jwvwqtnatds.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <871ubv6o7h.fsf@kanis.fr> (Ivan Kanis's message of "Mon, 04 Mar 2013 18:59:14 +0100")

>> In any case <tab> is not overridden.  It's just that you don't have any
>> binding for <tab> 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



      parent reply	other threads:[~2013-03-04 18:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 10:53 bug#13861: 24.3.50; Binding C-i breaks TAB bindings Ivan Kanis
2013-03-03 18:52 ` Glenn Morris
     [not found] ` <handler.13861.D13861.1362336754560.notifdone@debbugs.gnu.org>
2013-03-04  7:01   ` Binding C-i breaks TAB bindings (was bug#13861) Ivan Kanis
2013-03-04 14:28     ` Stefan Monnier
2013-03-04 17:59       ` Ivan Kanis
2013-03-04 18:21         ` Ivan Andrus
2013-03-04 18:56         ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvwqtnatds.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=banana@kanis.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.