From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: ESC vs Meta for shifted keys Date: Thu, 12 Apr 2018 16:57:41 +0200 Message-ID: <874lkgsc9m.fsf@gmail.com> References: <87d0z71985.fsf@gmail.com> <20180410164730086770438@bob.proulx.com> <20180411131107072594795@bob.proulx.com> <87r2nkq06a.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523544975 20353 195.159.176.226 (12 Apr 2018 14:56:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2018 14:56:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 16:56:11 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 1f6ddz-00059O-Bg for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2018 16:56:11 +0200 Original-Received: from localhost ([::1]:45736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6dg4-0005kr-Ct for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2018 10:58:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6dfZ-0005kW-E0 for help-gnu-emacs@gnu.org; Thu, 12 Apr 2018 10:57:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6dfW-000463-85 for help-gnu-emacs@gnu.org; Thu, 12 Apr 2018 10:57:49 -0400 Original-Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:34828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6dfW-00045c-1E for help-gnu-emacs@gnu.org; Thu, 12 Apr 2018 10:57:46 -0400 Original-Received: by mail-wm0-x236.google.com with SMTP id r82so10236503wme.0 for ; Thu, 12 Apr 2018 07:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=AnVJopS5pYVnRaQ0WEqFmxjrPNRPbzCQ2kh1eivvPyM=; b=NhwP38CDhawC808h4r2F6jMhwBUm0ZmrCHbg++jCwV6NHksM6jeqLAoGJq734NLSyZ D3cGcJKFDjP4MsjQQlV1bT/gGtX+tu0Y4MUTTP2cSBeuuTUEFNA4Im6RJW8cYz7T1atz lIxgIIWL2haS4EHwrXoGAVlXa5D+Y9mXkIXMR1VdCPwgvdhDumYzWLC1K9xlPNB2Atar pWcfOqbp9qjv8gY+HcLZfK85boYB1awG0nHwafS8i5nfqt/sygIdd7dOiKO2WVMNG/4g mLeNzVuw3myANesJACFcquVT1twKtwsx52tJRaanBXGNh5ilG1EtLljVwB73vyJi9nDd yzDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=AnVJopS5pYVnRaQ0WEqFmxjrPNRPbzCQ2kh1eivvPyM=; b=sIpX0T/xR+CYBIf5eF7dccrRkoWes+wUCGewMvHMuNprBKEGXyr9DiF5vQBOe/9af4 Jc9bArFm+htEvrAolXnWTFdY4Xu6wAr6JOSP0zurooKkefWyNSv9i/U9TLCcSyK57Ntt JvmAqQZ+D6BkgyKGQooZi4rYLnx6wtGRf3+hlld4YtFuDHKnE9y5w3TksZpeoNtj7NZk Lk/wezUrQ7mNffpFeUm1eZAfAruSOSCWVmM6f+I4ZIROsPdnRBQb1I2Q1aAnhkoeCfrZ McW6fkXXu3eZzKc6iJbjAOCmKXqXwvnKuh2XEKiMTqxIynadqh+QBhlgmGqKkzKhKh1h m0vA== X-Gm-Message-State: ALQs6tC5SLqTqC2VhRGTN3MFvNJHHu/vaMwWhSSTQaPr6iUxgDzCGnZ+ FflQBoNzaVntU+dVAwq1zZQ= X-Google-Smtp-Source: AIpwx4+tB1U/+6JK8LAtyOIo8nhayDpfWjQMVlTmaT3J65d1d2Do8pxa8nQBp53lT/Cv1KYzcVjEJA== X-Received: by 10.28.48.70 with SMTP id w67mr974864wmw.47.1523545064645; Thu, 12 Apr 2018 07:57:44 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id f54sm4059661wra.80.2018.04.12.07.57.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 07:57:44 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Drew Adams's message of "Thu, 12 Apr 2018 07:52:07 -0700 (PDT)") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::236 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:116493 Archived-At: Drew Adams writes: >> >> I think it's just a bug: when left-word and right-word were introduced >> >> only one pair of bindings was updated and not the other. >> > >> > I'm not sure it's a bug. My guess is that it was by design >> > (for whatever reason). Perhaps Eli or someone else can >> > enlighten us. >> > >> > I kinda doubt it was an oversight. All of those bindings >> > are together, and the person who changed the Meta bindings >> > likely searched for `forward-word', not "[M-right]" or >> > "(kbd "M-")"... >> > >> > In `bindings.el': >> > (global-set-key [M-right] 'right-word) >> > (define-key esc-map [right] 'forward-word) >> > (global-set-key [M-left] 'left-word) >> > (define-key esc-map [left] 'backward-word) >> >> They both used to be bound to {forward,backward}-word, and were >> updated at the same time. They're only different in R2L text. > > The question raised was whether the apparent > non-update of the esc-map bindings was deliberate > or an oversight. It looks deliberate to me (and sensible). > When you say "they" were bound ... and "they" were > updated at the same time, is it the same "they"? > Does "they" refer to the global and esc-map keys > for the update, as well as for the old bindings? > > Are you saying that the esc-map bindings used to > be bound to (forward|backward)-*, and they were > "updated" (at the same time as the global-map > keys) to the same keys: (forward|backward)-*? Only the global bindings were changed: --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -1103,9 +1103,9 @@ mode-specific-map "Keymap for characters following C-c.") (define-key global-map "\C-c" 'mode-specific-command-prefix) -(global-set-key [M-right] 'forward-word) +(global-set-key [M-right] 'right-word) (define-key esc-map [right] 'forward-word) -(global-set-key [M-left] 'backward-word) +(global-set-key [M-left] 'left-word) (define-key esc-map [left] 'backward-word) ;; ilya@math.ohio-state.edu says these bindings are standard on PC editors. (global-set-key [C-right] 'right-word)