From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: question about Meta + Shift modifiers: M-S-r and M-R Date: Fri, 25 Jan 2013 16:13:50 -0800 Message-ID: <5C78448DD5B849F9A64C2489478EC4D9@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359159245 18691 80.91.229.3 (26 Jan 2013 00:14:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2013 00:14:05 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 01:14:24 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TytPc-0007zG-KC for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2013 01:14:24 +0100 Original-Received: from localhost ([::1]:59196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TytPK-0002Zq-Vi for ged-emacs-devel@m.gmane.org; Fri, 25 Jan 2013 19:14:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TytPF-0002Zb-R5 for emacs-devel@gnu.org; Fri, 25 Jan 2013 19:14:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TytPB-0004ps-So for emacs-devel@gnu.org; Fri, 25 Jan 2013 19:14:01 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:28895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TytPB-0004pc-MH for emacs-devel@gnu.org; Fri, 25 Jan 2013 19:13:57 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0Q0DuBn017594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 26 Jan 2013 00:13:56 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0Q0Dtwd023463 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 26 Jan 2013 00:13:55 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0Q0DtT1025834 for ; Fri, 25 Jan 2013 18:13:55 -0600 Original-Received: from dradamslap1 (/10.159.189.45) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 25 Jan 2013 16:13:55 -0800 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac37WgSZ4JdpodUwSgSbZQGtnzlzbg== X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156642 Archived-At: Someone will hopefully remind me of something simple that has disappeared from my memory at the moment. Or perhaps there is a bug somewhere? I really don't know what I might be missing at this point. Why is it that `M-S-r' is not the same key sequence as `M-R', at least sometimes? (global-set-key "\M-\S-r" 'forward-char) C-h k ; then press Alt + Shift + r Says that M-R is bound to `forward-char'. (global-set-key (kbd "M-R" 'forward-char) has the same effect. Fair enough. But is calling this `M-R' just a nice shorthand, or does Emacs simply not consider this key sequence as being the same as `r' plus the modifiers Meta and Shift? (global-set-key "\M-\S-r" nil) ; Cancel that. (global-set-key (kbd "M-S-r" 'forward-char) C-h w forward-char says that it is on `M-S-r'. C-h k ; press the same chord. Says the same thing it said when bound to nil. `M-S-r' is acceptable as a key sequence for binding, and it gets bound as expected, but it apparently does not mean the same thing as pressing that chord. What possible combination of physical keys might it actually represent? Which part of the manual am I not finding or misreading, which would explain all of this? Searching for `Shift', which the discussion would presumably need to mention, finds nothing pertinent, AFAICT. Likewise, searching for `uppercase' and `lowercase'. It seems clear (now) that the _only_ external representation that Emacs uses and recognizes for that chord is `M-R'. That would explain why (kbd "M-S-r") does not do the same thing. But (kbd "M-S-r") is acceptable and clearly binds _some_ key sequence - which one? What real key sequence does it represent? Or what irreal one could it represent, given an arbitrary fictional keyboard? Somehow I mistakenly got the impression that `M-S-r' would be just another external way to refer to the same chord that `M-R' refers to.