all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: ESC vs Meta for shifted keys
Date: Thu, 12 Apr 2018 16:57:41 +0200	[thread overview]
Message-ID: <874lkgsc9m.fsf@gmail.com> (raw)
In-Reply-To: <b239637e-e1d7-475d-a57b-22fe46ca297c@default> (Drew Adams's message of "Thu, 12 Apr 2018 07:52:07 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> 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-<right>")"...
>> >
>> > 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)



  reply	other threads:[~2018-04-12 14:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10 13:28 ESC vs Meta for shifted keys Robert Pluim
2018-04-10 13:42 ` Stefan Monnier
2018-04-10 13:57   ` Robert Pluim
2018-04-10 23:11   ` Bob Proulx
2018-04-11 12:34     ` Stefan Monnier
2018-04-11 19:54       ` Bob Proulx
2018-04-11 21:10         ` Stefan Monnier
2018-04-11 21:58           ` Drew Adams
2018-04-12  8:49             ` Robert Pluim
2018-04-12 14:52               ` Drew Adams
2018-04-12 14:57                 ` Robert Pluim [this message]
2018-04-12 16:02                   ` Drew Adams
2018-04-12 16:16                     ` Robert Pluim
2018-04-12 16:35                       ` Yuri Khan
2018-04-12 16:53                         ` Eli Zaretskii
2018-04-12 16:48                       ` Eli Zaretskii
2018-04-12 11:31             ` Eli Zaretskii
     [not found] <mailman.11969.1523366938.27995.help-gnu-emacs@gnu.org>
     [not found] ` <86tvsiaoe3.fsf@zoho.com>
2018-04-10 23:26   ` Bob Proulx
2018-04-10 23:40     ` Bob Proulx
2018-04-15  0:30   ` Tim Johnson
     [not found]   ` <mailman.12411.1523752244.27995.help-gnu-emacs@gnu.org>
2018-04-15  0:50     ` Emanuel Berg
2018-04-15 15:50       ` Tim Johnson
2018-04-16 12:52         ` Robert Pluim
     [not found]   ` <mailman.11999.1523402811.27995.help-gnu-emacs@gnu.org>
2018-04-15  1:06     ` Emanuel Berg
2018-04-15  4:13       ` Bob Proulx
     [not found]       ` <mailman.12416.1523765608.27995.help-gnu-emacs@gnu.org>
2018-04-15 20:04         ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874lkgsc9m.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.