From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Binding C-i without losing <tab> functionality
Date: Fri, 24 Oct 2008 19:37:37 +0200 [thread overview]
Message-ID: <1224870207.745136@arno.fh-trier.de> (raw)
In-Reply-To: <f2757f1e-5992-40f9-84ed-687e2b9e498f@l33g2000pri.googlegroups.com>
jeep wrote:
> On Oct 24, 2:30 am, Andreas Politz <poli...@fh-trier.de> wrote:
>> (member '(tab . [9]) function-keymap)
>
> Would you mind explaining this a little? I cannot evaluate that in
> emacs. And I don't understand what it's supposed to do.
>
> Thanks,
> -JEEP
I forgot a hyphen. The thing is called `function-key-map'.
(member '(tab . [9]) function-key-map)
After reading the mentioned info page (what you should have done as well)
, I would do it like so:
1. Don't translate tab into C-i.
(define-key function-key-map [tab] nil)
2. Swap the meanings of tab and C-i.
(define-key key-translation-map [9] [tab])
(define-key key-translation-map [tab] [9])
3. Bind tab (which is now actually C-i)
(global-set-key [tab] 'isearch-forward)
Note that I am an emacs newbie as well, so I can't tell what
sideeffects this has. But it seems to work. Unless the system
can't differentiate this 2 keys, like in an xterm.
-ap
next prev parent reply other threads:[~2008-10-24 17:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 0:56 Binding C-i without losing <tab> functionality Joseph Peterson
2008-10-24 8:35 ` Paul R
[not found] ` <mailman.1986.1224837322.25473.help-gnu-emacs@gnu.org>
2008-10-24 9:30 ` Andreas Politz
2008-10-24 15:40 ` jeep
2008-10-24 17:37 ` Andreas Politz [this message]
2008-10-24 18:45 ` jeep
2008-10-25 5:13 ` jeep
2008-10-25 10:02 ` Andreas Politz
2008-10-29 5:29 ` jeep
2008-10-24 15:32 ` jeep
[not found] <mailman.1964.1224816146.25473.help-gnu-emacs@gnu.org>
2008-10-24 8:44 ` Xah
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=1224870207.745136@arno.fh-trier.de \
--to=politza@fh-trier.de \
--cc=help-gnu-emacs@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.