|
From: | Andreas Politz |
Subject: | Re: Binding C-i without losing <tab> functionality |
Date: | Fri, 24 Oct 2008 11:30:17 +0200 |
User-agent: | Mozilla-Thunderbird 2.0.0.16 (X11/20080724) |
Paul R wrote:
On Thu, 23 Oct 2008 17:56:03 -0700 (PDT), Joseph Peterson <jeepeterson@yahoo.com> said: Joseph> Hello all, I'm trying to bind C-i to isearch-forward, but I'm Joseph> having some problems. Some devices are known to treat C-i and TAB as the same signal, as well as C-m and RET. I think this is why it is not so easy to dissociate them in emacs, even when your device allows it.
This looks like the answer : ,----[ (info "(elisp)Function Keys") ] | In ASCII, `C-i' and <TAB> are the same character. If the terminal | can distinguish between them, Emacs conveys the distinction to | Lisp programs by representing the former as the integer 9, and the | latter as the symbol `tab'. | | Most of the time, it's not useful to distinguish the two. So | normally `function-key-map' (*note Translation Keymaps::) is set | up to map `tab' into 9. Thus, a key binding for character code 9 | (the character `C-i') also applies to `tab'. Likewise for the | other symbols in this group. The function `read-char' likewise | converts these events into characters. `---- (member '(tab . [9]) function-keymap) -ap
[Prev in Thread] | Current Thread | [Next in Thread] |