From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Ctrl-[ ? Date: Sun, 09 Jun 2019 09:37:04 +0300 Message-ID: <834l4zclin.fsf@gnu.org> References: <08AC8151-5911-40FA-8B20-818B839D00AB@traduction-libre.org> <86h892nk2g.fsf@zoho.eu> <9379C01B-80E3-49DD-B830-46CED773DC2C@traduction-libre.org> <83lfydrkde.fsf@gnu.org> <874l51q0s4.fsf@telefonica.net> <83ef45rdij.fsf@gnu.org> <87zhmto6fa.fsf@telefonica.net> <20190607163017.GA32029@tuxteam.de> <96B116FC-8007-4C42-9AE6-585530D0C76E@comcast.net> <87muisor2h.fsf@telefonica.net> <63F9D100-CD25-445B-8184-93A25DB0FC38@comcast.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="222127"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 08:37:34 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hZrSQ-000vbv-0J for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 08:37:34 +0200 Original-Received: from localhost ([::1]:34056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZrSO-0004mx-Cg for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 02:37:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38537) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZrS8-0004mf-7H for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 02:37:17 -0400 Original-Received: from fencepost.gnu.org ([209.51.188.10]:40517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hZrS6-0007xb-H8 for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 02:37:16 -0400 Original-Received: from [176.228.60.248] (port=4955 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hZrS4-0001Le-4z for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 02:37:14 -0400 In-reply-to: <63F9D100-CD25-445B-8184-93A25DB0FC38@comcast.net> (message from Francis Belliveau on Sat, 8 Jun 2019 17:03:06 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:120864 Archived-At: > From: Francis Belliveau > Date: Sat, 8 Jun 2019 17:03:06 -0400 > > It is my assumption in what I say below that EMACS is trusting the OS to perform the keystroke translations for it. This is only correct up to a point. Modern GUI environments allow Emacs to distinguish between, say, Delete the function key and DEL the ASCII octal 177 code. They also allow it to distinguish between an ASCII key pressed together with Ctrl and the corresponding lower ASCII control code. Emacs does the conversion to conflate those, at least by default, because otherwise most users will be flabbergasted to learn that, say, C-[ doesn't produce the same effect as ESC. Documenting these conversion is not easy, because many of them have to do with deep internals of character and key representation in various parts of Emacs. For example, Ctrl and Meta modifiers have 2 different representations, and Emacs by default goes out of its way to hide this difference.