From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Ctrl-[ ? Date: Thu, 6 Jun 2019 14:44:31 +0200 Message-ID: <6A538FF9-94C8-491D-B1B9-5C0D09FE7C39@acm.org> 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: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="56963"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Jean-Christophe Helary , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 06 14:45:16 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 1hYrlb-000EhZ-Kd for ged-emacs-devel@m.gmane.org; Thu, 06 Jun 2019 14:45:16 +0200 Original-Received: from localhost ([127.0.0.1]:59965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYrla-0001p3-Bl for ged-emacs-devel@m.gmane.org; Thu, 06 Jun 2019 08:45:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYrl1-0001oj-CB for emacs-devel@gnu.org; Thu, 06 Jun 2019 08:44:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYrl0-0001sI-B5 for emacs-devel@gnu.org; Thu, 06 Jun 2019 08:44:39 -0400 Original-Received: from mail72c50.megamailservers.eu ([91.136.10.82]:46546 helo=mail92c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYrkz-0001aT-LH; Thu, 06 Jun 2019 08:44:38 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1559825074; bh=fUWQJgWdjU3FhUK5X2xaQRmBKKyZaADF8dYDvb+QPts=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=YlFxK9B9QsYUJRAgCSyrY4+TelmdkwjsqXmpOBkRxefYnpkF+ixPOaUKXlj2qhwMW 5QdLAJqMuI9/dT0PsUciU/Xe5VM1EFFRcwa+4vnxTuVag+wnrIc19GIU4R2jDySbVf IkUus852U37FcESi0lT49N32cr50KVf/fApsdJtw= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x56CiV3G007210; Thu, 6 Jun 2019 12:44:33 +0000 In-Reply-To: <34E3289C-10EE-4A23-AEE4-80D984DB2EDE@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B020D.5CF90AB2.004B, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=LZQSFAXi c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=mDV3o1hIAAAA:8 a=ivN0AIFMhcEsYPoN0o0A:9 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.82 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:237271 Archived-At: 6 juni 2019 kl. 12.12 skrev Eli Zaretskii : >=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. The above is true when Emacs is running in a terminal. Otherwise, Emacs = has code to emulate that behaviour (make_ctrl_char), so that we can = enjoy a whiff of early 1960s bit-paired keyboards. And this does appear = to be hard-coded, in the sense that it cannot be disabled. It's somewhat useful for certain expensive keyboards with dodgy escape = keys.