From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: ESC vs Meta for shifted keys Date: Tue, 10 Apr 2018 17:11:16 -0600 Message-ID: <20180410164730086770438@bob.proulx.com> References: <87d0z71985.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1523401790 5421 195.159.176.226 (10 Apr 2018 23:09:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2018 23:09:50 +0000 (UTC) User-Agent: Mutt/1.9.4 (2018-02-28) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 01:09:46 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 1f62OX-0001Ev-6z for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Apr 2018 01:09:45 +0200 Original-Received: from localhost ([::1]:54284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f62QZ-00017T-IU for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Apr 2018 19:11:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f62Q5-00016c-8W for help-gnu-emacs@gnu.org; Tue, 10 Apr 2018 19:11:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f62Q2-00036C-3P for help-gnu-emacs@gnu.org; Tue, 10 Apr 2018 19:11:21 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:45639) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f62Q1-00034P-Tg for help-gnu-emacs@gnu.org; Tue, 10 Apr 2018 19:11:18 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 8E2ED2570 for ; Tue, 10 Apr 2018 17:11:16 -0600 (MDT) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 5BFA121241 for ; Tue, 10 Apr 2018 17:11:16 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 47CA92DC74; Tue, 10 Apr 2018 17:11:16 -0600 (MDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 96.88.95.61 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:116451 Archived-At: Stefan Monnier wrote: > The ESC <-> Meta equivalence only holds for characters, not for > "special keys" such as `left`, indeed. Not sure why. It seems to work for me. Using C-h c to describe keys in both a terminal and a graphical emacs shows: ESC (translated from ESC M-O D) runs the command backward-word runs the command left-word left-word , Move point N words to the left (to the right if N is negative). backward-word ESC , M-b Move backward until encountering the beginning of a word. I presume this is to support: 11.6 Shift Selection ==================== If you hold down the shift key while typing a cursor motion command, this sets the mark before moving point, so that the region extends from the original position of point to its new position. This feature is referred to as "shift-selection". It is similar to the way text is selected in other editors. ... I imagine that the keybinding ESC mapping to backward-word instead of left-word is the root cause of the difference. WDYT? Bob