unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C-[ is undefined
@ 2018-07-07 19:52 Michael Brand
  2018-07-26  2:00 ` Fwd: " Michael Brand
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Michael Brand @ 2018-07-07 19:52 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all

Short story: ~C-x @ c [~ results in "C-[ is undefined" but I expected
it to be the Meta prefix like in for example ~C-[ t~ for ~M-t~.

Long story: With the help of key-chord-mode I started to use two
simultaneously pressed normal keys to get the control modifier:

#+begin_src emacs-lisp
  (defvar v-key-chord-control "en"
    "Key chord for `event-apply-control-modifier'.
  The key chord is optimized for `vi-state' and the Colemak
  keyboard layout (where `en' is QWERTY `jk').")

  (key-chord-define key-translation-map v-key-chord-control
                    #'event-apply-control-modifier)
  (key-chord-define-global v-key-chord-control
                           #'event-apply-control-modifier)
#+end_src

Now also ~en [~ results in "C-[ is undefined". The same applies for \,
], ^ and _ with control modifier. All other control characters (means
a-z with control modifier like for example "en s" for I-search) are
bound as expected.

I tried

#+begin_src emacs-lisp
  (define-key key-translation-map (kbd "C-[") [(escape)])
#+end_src

or

#+begin_src emacs-lisp
  (global-set-key (kbd "C-[") [(escape)])
#+end_src

but ~C-[~ remains undefined. What is the part that I am missing? (And
what will be needed instead of ~[(escape)]~ after the binding is
fixed?)

Please CC me as I am not subscribed to this list.

Michael



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-08-19 17:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-07 19:52 C-[ is undefined Michael Brand
2018-07-26  2:00 ` Fwd: " Michael Brand
     [not found] ` <mailman.4231.1532570417.1292.help-gnu-emacs@gnu.org>
2018-07-26 12:38   ` Ben Bacarisse
2018-07-27  0:17     ` Michael Brand
     [not found]     ` <mailman.4284.1532650678.1292.help-gnu-emacs@gnu.org>
2018-07-27  1:33       ` Ben Bacarisse
2018-07-27 13:24         ` John Shahid
     [not found]         ` <mailman.4322.1532697888.1292.help-gnu-emacs@gnu.org>
2018-07-27 16:19           ` Ben Bacarisse
2018-07-27 13:12 ` Noam Postavsky
2018-07-27 20:38   ` Stefan Monnier
2018-07-28 23:40   ` Michael Brand
2018-08-19 16:02     ` Michael Brand
2018-08-19 16:12       ` Stefan Monnier
2018-08-19 17:01       ` Michael Brand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).