From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.help Subject: read-key-sequence(-vector) on Shift left/right gives [left]/[right], not [S-left]/[S-right] ? Date: Mon, 6 Sep 2004 17:02:31 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094515391 9457 80.91.224.253 (7 Sep 2004 00:03:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2004 00:03:11 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 07 02:03:02 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C4TRt-0002zN-00 for ; Tue, 07 Sep 2004 02:03:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4TX6-00007S-0H for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Sep 2004 20:08:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4TWn-0008PO-ET for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2004 20:08:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4TWm-0008Nd-0c for bug-gnu-emacs@gnu.org; Mon, 06 Sep 2004 20:08:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4TWl-0008NV-8k; Mon, 06 Sep 2004 20:08:03 -0400 Original-Received: from [141.146.126.231] (helo=agminet04.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C4TRY-0007ER-4E; Mon, 06 Sep 2004 20:02:40 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.191.12]) by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i8702Zbg012384; Mon, 6 Sep 2004 17:02:36 -0700 Original-Received: from rgmgw3.us.oracle.com (localhost [127.0.0.1]) by rgmgw3.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i8702ZSW015708; Mon, 6 Sep 2004 18:02:35 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-81-129.vpn.oracle.com [141.144.81.129]) by rgmgw3.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i8702YGR015701; Mon, 6 Sep 2004 18:02:35 -0600 Original-To: "Help-Gnu-Emacs" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8947 gmane.emacs.help:20462 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20462 (defun foo () (interactive) (let ((foo (read-key-sequence-vector "" ))) (message "foo: %s" foo))) Execute foo, press Shift+[left] or Shift+[right]. The message ([left] or [right]) shows that the Shift modifier is lost. However, if you press Shift+[up] or Shift+[down], the message is [S-up] or [S-down]. That seems correct to me. Same thing with read-key-sequence as with read-key-sequence-vector. Is this a bug? I'm using Emacs 20.7.3 on Windows: (i386-*-nt5.1.2600) of Thu Dec 21 2000 on buffy. If I try this on Emacs 21 (21.3.50.1 - i386-mingw-nt5.1.2600 of 2004-04-27 on BERATUNG4), then the Shift modifier is lost on the S-up and S-down also. Is this intended? How can I read the key sequence and obtain the modifier? Thanks, Drew