From: "Drew Adams" <drew.adams@oracle.com>
To: "'Andreas Schwab'" <schwab@linux-m68k.org>
Cc: emacs-devel@gnu.org
Subject: RE: question about Meta + Shift modifiers: M-S-r and M-R
Date: Sat, 26 Jan 2013 10:14:45 -0800 [thread overview]
Message-ID: <60F809C792734D2A80F3609EFB86A23B@us.oracle.com> (raw)
In-Reply-To: <m24ni33l7h.fsf@igel.home>
> > It has _something_ to do with Meta, in that the same is not
> > true for C-S-r or C-M-S-r etc.
>
> (equal (kbd "C-S-r") (kbd "C-R")) => nil
> (equal (kbd "C-M-S-r") (kbd "C-M-R")) => nil
So what?
(equal (kbd "M-S-r") (kbd "M-R")) => nil
(equal (kbd "C-M-S-r") (kbd "C-M-R")) => nil
(global-set-key (kbd "C-S-r") 'forward-char)
C-h w forward-char correctly tells us it is on `C-S-r'.
(global-set-key (kbd "C-R") 'backward-char)
C-h w backward-char correctly says it is on `C-r' (not `C-R').
And Control + Shift + `r' moves forward.
All of that is normal. It is expected, since Control does not distinguish
uppercase and lowercase letters. Control + Shift + lowercase-letter acts the
same as Control + lowercase-letter. That is in the nature of Control.
But Meta does distinguish lowercase and uppercase letters. Meta + Shift +
lowercase-letter does not necessarily act the same as Meta + lowercase-letter.
What is not so expected is this:
(global-set-key (kbd "M-R") 'backward-char)
(global-set-key (kbd "M-S-r") 'forward-char)
C-h w correctly tells us that these are on `M-R' and `M-S-r'.
Press Meta + Shift + `r'. Point moves backward.
Whether (kbd "M-R") and (kbd "M-S-r") are `equal', and likewise
for `C-', is beside the point.
The point is that (kbd "M-S-r") binds a key that no one can ever type. The only
recognized external representation for Meta + Shift + `r' is `M-R'.
next prev parent reply other threads:[~2013-01-26 18:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-26 0:13 question about Meta + Shift modifiers: M-S-r and M-R Drew Adams
2013-01-26 10:30 ` Andreas Schwab
2013-01-26 16:24 ` Drew Adams
2013-01-26 17:31 ` Andreas Schwab
2013-01-26 18:14 ` Drew Adams [this message]
2013-01-26 19:06 ` Andreas Schwab
2013-01-26 19:18 ` Drew Adams
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=60F809C792734D2A80F3609EFB86A23B@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=schwab@linux-m68k.org \
/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.