From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: Ctrl-[ ? Date: Thu, 6 Jun 2019 21:37:38 +0900 Message-ID: References: <08AC8151-5911-40FA-8B20-818B839D00AB@traduction-libre.org> <6F55E018-B15E-42B0-8794-21F55BBA23D3@traduction-libre.org> <34E3289C-10EE-4A23-AEE4-80D984DB2EDE@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_F46B4A5F-7DD8-4B5D-930A-5F3F1D491144" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="24784"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 06 14:38:01 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYreb-0006Ho-9R for ged-emacs-devel@m.gmane.org; Thu, 06 Jun 2019 14:38:01 +0200 Original-Received: from localhost ([127.0.0.1]:59907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYreZ-0007U0-QS for ged-emacs-devel@m.gmane.org; Thu, 06 Jun 2019 08:37:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYreT-0007TC-0L for emacs-devel@gnu.org; Thu, 06 Jun 2019 08:37:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYreR-0004GI-AX for emacs-devel@gnu.org; Thu, 06 Jun 2019 08:37:52 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:56577) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYreQ-0003ze-Hw for emacs-devel@gnu.org; Thu, 06 Jun 2019 08:37:51 -0400 X-Originating-IP: 111.89.228.40 Original-Received: from [192.168.1.3] (pl32040.ag0304.nttpc.ne.jp [111.89.228.40]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id D21501C0018 for ; Thu, 6 Jun 2019 12:37:42 +0000 (UTC) In-Reply-To: <34E3289C-10EE-4A23-AEE4-80D984DB2EDE@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.197 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237270 Archived-At: --Apple-Mail=_F46B4A5F-7DD8-4B5D-930A-5F3F1D491144 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jun 6, 2019, at 19:12, Eli Zaretskii wrote: >=20 > On June 6, 2019 10:26:28 AM GMT+03:00, Jean-Christophe Helary = wrote: >> I found on Stackoverflow that C-[ was pretty much hard-coded as ESC. >> Why is that ? >>=20 >> https://superuser.com/questions/173851/linux-remap-ctrl-key >>=20 >> Also, there is no mention about that at all in the manual.=09 >=20 > It isn't hardcoded in Emacs, it' "hardcoded" in the way the OS = produces character codes when you type keys on the keyboard. C-[ = produces ESC for the same reason C-i produces TAB and C-j produces RET: = these keys emit the same codes as the corresponding Ctrl sequences. Yes but, in my other applications I do have the ability to use Ctrl+[ in = a way that is not ESC. Like assign C-[ as a shortcut similarly to C-]. Is there a way to do the same in emacs ? Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune --Apple-Mail=_F46B4A5F-7DD8-4B5D-930A-5F3F1D491144 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Jun 6, 2019, at 19:12, Eli Zaretskii <eliz@gnu.org> = wrote:

On June 6, 2019 10:26:28 AM GMT+03:00, Jean-Christophe Helary = <jean.christophe.helary@traduction-libre.org> wrote:
I found on Stackoverflow = that C-[ was pretty much hard-coded as ESC.
Why is that = ?

https://superuser.com/questions/173851/linux-remap-ctrl-key=

Also, there is no mention about that at = all in the manual.

It isn't hardcoded in Emacs, it' "hardcoded" in the way the = OS produces character codes when you type keys on the keyboard. =  C-[ produces ESC for the same reason C-i produces TAB and C-j = produces RET: these keys emit the same codes as the corresponding Ctrl = sequences.

Yes but, in my other applications I do have the = ability to use Ctrl+[ in a way that is not ESC. Like assign C-[ as a = shortcut similarly to C-].

Is there = a way to do the same in emacs ?


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune


= --Apple-Mail=_F46B4A5F-7DD8-4B5D-930A-5F3F1D491144--