help-gnu-emacs
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]