[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ctrl-[ ?
From: |
Stefan Monnier |
Subject: |
Re: Ctrl-[ ? |
Date: |
Tue, 18 Jun 2019 18:25:03 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Thank you for the detailed explanation. IIUC the delicate part consists
> on locating and deciding what's the right thing to do about each of
> those uses of "control characters" scattered through the code base.
Not really, no. We can't go and change each place, because many of the
places are outside of our control.
So rather, we have to find a clever way to keep the old code working as
before while still adding the new feature.
Using my proof-of-concept code, I see one of the major problems:
- We need some way to tell define-key whether we want to add a binding
to ^x (the ASCII control char) or to C-x (the combination of control
with `x`), same with TAB (aka ^i) -vs- C-i, ESC (aka ^[) -vs- C-[, etc...
- Once we do that we have another problem:
Say your favorite major mode binds ^x ^x to FOO
And say some new package adds a global binding for C-x C-x to BAR.
Now the global binding takes precedence over the buffer-local binding
from your favorite major mode :-(
-- Stefan
- Re: Ctrl-[ ?, (continued)
- Re: Ctrl-[ ?, tomas, 2019/06/08
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/08
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/08
- Re: Ctrl-[ ?, tomas, 2019/06/08
- Re: Ctrl-[ ?, Francis Belliveau, 2019/06/08
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/08
- Re: Ctrl-[ ?, Stefan Monnier, 2019/06/08
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/08
- Re: Ctrl-[ ?,
Stefan Monnier <=
- Re: Ctrl-[ ?, Francis Belliveau, 2019/06/11
- Re: Ctrl-[ ?, Stefan Monnier, 2019/06/14
- [offtopic] Re: Ctrl-[ ?, Van L, 2019/06/14
- Re: [offtopic] Re: Ctrl-[ ?, tomas, 2019/06/14
- Re: [offtopic] Re: Ctrl-[ ?, Van L, 2019/06/15
- Re: [offtopic] Re: Ctrl-[ ?, tomas, 2019/06/15
- Re: [offtopic] Re: Ctrl-[ ?, Van L, 2019/06/15
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/09