From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Brand Newsgroups: gmane.emacs.help Subject: C-[ is undefined Date: Sat, 7 Jul 2018 21:52:37 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1530993062 25245 195.159.176.226 (7 Jul 2018 19:51:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2018 19:51:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 07 21:50:58 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbtEQ-0006Q0-Cq for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 21:50:58 +0200 Original-Received: from localhost ([::1]:34726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbtGW-0004YT-0R for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 15:53:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbtG4-0004Y9-P6 for help-gnu-emacs@gnu.org; Sat, 07 Jul 2018 15:52:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbtG3-0001sY-Ts for help-gnu-emacs@gnu.org; Sat, 07 Jul 2018 15:52:40 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:45452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbtG3-0001rc-Ky for help-gnu-emacs@gnu.org; Sat, 07 Jul 2018 15:52:39 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id m13-v6so12325514lfb.12 for ; Sat, 07 Jul 2018 12:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WgDf+G5+JO6iyyPaqkTP72IlaK4qni/TgTAPGaRT8zM=; b=Z3e7ZVe0ceaDPdJE2E0XZP0n5vmePVZAXMlTUIyHK3ufOq3ShKPbq8z2lu9Ze8Ek6e PtuaYHYIcPqGRZgv0fPy+La4VT3qcl4/WyptaHvzOZAYjlak4UYwjGM2Preo4ac0O+1l ExtQ6RnLCAByY8vkFEfdSplbDyho1kvNJQ3gyNoi3nAiQtll/vDU6zwf3AJw20s7mi5z srqY5K5WcsDRf+KEaEqnNyuWTONWqgLrBhbfjZ/zPFMR9DFK7tf1MF22eTKJApWlDs2H IrCu94WtjtrH4xDKymWBL5SKbDvXMbHpQuYQUwOG33V1olfYGunUfrTDPpCnF6Zivt0p vK+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WgDf+G5+JO6iyyPaqkTP72IlaK4qni/TgTAPGaRT8zM=; b=Am9nLYNdZhsS5D4KKwLWsgie3zONsmF6BQlAPbFXMc4Npj2LwqXP4qThr/ovPwf4V0 HU5Y3ne65M1L6uYLTfJ7kLPYM38vLyLkAaZaOL5/ZRahk68upYBk2dLgLxXUzQoCUiHG mrckDC+FumGJgks6U1jpna7BwtNhKfN+JKF8C/HqZbrKbiJ+SeD5j7LkhGZw1bqYOd+M YiTAjRXXMgDlyGo8Iuyxz/x12WzXnjynl6dC2dBZEZHD3wezYU0dHVVnBytbAvzcLh9O 2cdjAZUdJlg7tkKY4fU78bAbGXsOCT/znagHVLl2/l1fMt8eKXMOD4bj4gi8YYhF8x5R UeRQ== X-Gm-Message-State: APt69E13ZAyCa+s2WcDc6m2o8DR7UFzpXCqOjcnkHc4V5g2qc52TN6Zk M8JRqJ8J0A52xjwORgLZOTzjiDi87rkO4tA4kk/+Ew== X-Google-Smtp-Source: AAOMgpdnDOJJcE53pYCuvlk6hSYwpVRf0ersNsPAsE5cu3AQ7kNbiYiSM06L1L40FumZn3N3CZJoRDSqzVFRRElidd4= X-Received: by 2002:a19:7b08:: with SMTP id w8-v6mr7970124lfc.22.1530993157643; Sat, 07 Jul 2018 12:52:37 -0700 (PDT) Original-Received: by 2002:a2e:299b:0:0:0:0:0 with HTTP; Sat, 7 Jul 2018 12:52:37 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117385 Archived-At: 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