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,gmane.emacs.devel Subject: RE: read-key-sequence(-vector) on Shift left/right gives[left]/[right], not [S-left]/[S-right] ? Date: Tue, 7 Sep 2004 08:47:07 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094602435 17462 80.91.224.253 (8 Sep 2004 00:13:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 00:13:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Kai Grossjohann , bug-gnu-emacs@gnu.org, rms@gnu.org, Emacs-Devel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 08 02:13:44 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 1C4q5o-000832-00 for ; Wed, 08 Sep 2004 02:13:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4qB3-000081-AJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Sep 2004 20:19:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4qAz-00006x-Ad for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2004 20:19:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4qAx-00006F-Ia for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2004 20:19:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4qAx-00006C-EV; Tue, 07 Sep 2004 20:19:03 -0400 Original-Received: from [148.87.2.204] (helo=inet-mail4.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C4q5f-0003jc-IT; Tue, 07 Sep 2004 20:13:35 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.191.10]) by inet-mail4.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i87FgLPL021862; Tue, 7 Sep 2004 08:42:24 -0700 (PDT) Original-Received: from rgmgw1.us.oracle.com (localhost [127.0.0.1]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i87FlE6F020687; Tue, 7 Sep 2004 09:47:14 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-65-166.vpn.oracle.com [141.144.65.166]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i87FlBEe020457; Tue, 7 Sep 2004 09:47:13 -0600 Original-To: "Stefan" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 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:8962 gmane.emacs.help:20496 gmane.emacs.devel:26868 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8962 From: Stefan > > Shouldn't code be able to read user input > > without paying attention to key bindings? > When do you stop? After one key, two keys, three? Point taken. What I really meant was wrt dropping the Shift modifier. Read-key-* has no trouble knowing to stop after one key, if that key is undefined. For example, if C-M-+ is undefined, it returns this: [-67108821]; it doesn't ask itself when to stop. Otherwise (a key sequence is defined), it continues to read until it gets the complete key sequence. I would expect it to have such behavior all the time, and not make an exception of Shift. That's all. IMO: - read-key-* should not drop the Shift modifier: if Shift-* is undefined and * is defined, it should act as it does with any other undefined key sequence (return Shift-*), instead of returning * - if read-key-* does drop the Shift modifier, then this should be documented - read-key-* should in any case optionally be able to not drop the Shift modifier Drew