[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ctrl-[ ?
From: |
Jean-Christophe Helary |
Subject: |
Re: Ctrl-[ ? |
Date: |
Fri, 7 Jun 2019 23:23:54 +0900 |
> On Jun 7, 2019, at 22:54, Noam Postavsky <npostavs@gmail.com> wrote:
>
> On Fri, 7 Jun 2019 at 09:23, Jean-Christophe Helary
> <jean.christophe.helary@traduction-libre.org> wrote:
>
>> (define-key input-decode-map "\C-[" [C-left-bracket])
>
>> I still don't understand where that "left-bracket" comes from so if you
>> could explain that would be extra nice.
>
> It's just an arbitrary symbol choice, you can choose a different one
> if you like.
>
> (define-key input-decode-map "\C-[" [C-open-square])
> (define-key global-map [C-open-square] 'forward-char)
Ok, but the key here (no pun intended) is to use input-decode-map before
binding the thing, right ?
I just checked the manual and that's a bit arcade to say the least, but at
least I know where the info is hidden now...
> So if I understand correctly, what happens is that Emacs gets Ctrl+[
> from the windowing system, translates that into the ASCII ESC
> character (aka 27, aka #x1B, aka ^[, aka \C-[). Then runs it through
> input-decode-map which translates it to C-open-square like we told it
> to. And then we can use C-open-square in keybindings as normal.
Thank you again for your explanations.
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
- Re: Ctrl-[ ?, (continued)
- Re: Ctrl-[ ?, Emanuel Berg, 2019/06/06
- Re: Ctrl-[ ?, Jean-Christophe Helary, 2019/06/07
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/07
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/07
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/07
- Re: Ctrl-[ ?, Jean-Christophe Helary, 2019/06/07
- Re: Ctrl-[ ?, Noam Postavsky, 2019/06/07
- Re: Ctrl-[ ?,
Jean-Christophe Helary <=
- Re: Ctrl-[ ?, Noam Postavsky, 2019/06/07
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/07
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/07
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/07
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/07
- Re: Ctrl-[ ?, tomas, 2019/06/07
- Re: Ctrl-[ ?, Francis Belliveau, 2019/06/07
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/07
- Re: Ctrl-[ ?, tomas, 2019/06/08
- Re: Ctrl-[ ?, 조성빈, 2019/06/08