From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: RE: 23.0.60; kbd returns wrong value Date: Fri, 16 May 2008 00:14:30 -0700 Message-ID: <004201c8b724$7c7cabb0$0200a8c0@us.oracle.com> References: <003e01c8b534$31cbdd30$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210925512 14033 80.91.229.12 (16 May 2008 08:11:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 08:11:52 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 10:12:28 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jwv3D-0000E8-BN for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 10:12:27 +0200 Original-Received: from localhost ([127.0.0.1]:48981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwv2T-0002CH-MJ for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 04:11:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwv1p-0001Q6-It for emacs-devel@gnu.org; Fri, 16 May 2008 04:11:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwv1j-0001EW-Ec for emacs-devel@gnu.org; Fri, 16 May 2008 04:10:57 -0400 Original-Received: from [199.232.76.173] (port=34837 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwv1j-0001ED-0c for emacs-devel@gnu.org; Fri, 16 May 2008 04:10:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:60227) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jwv1i-0008P7-Mm for emacs-devel@gnu.org; Fri, 16 May 2008 04:10:54 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:59924 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jwu8s-0004QV-Uz for emacs-pretest-bug@gnu.org; Fri, 16 May 2008 03:14:15 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jwu9q-0000pU-F1 for emacs-pretest-bug@gnu.org; Fri, 16 May 2008 03:15:19 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:27104) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jwu9p-0000nc-TO for emacs-pretest-bug@gnu.org; Fri, 16 May 2008 03:15:14 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jwu9i-0001vU-5Y for emacs-pretest-bug@gnu.org; Fri, 16 May 2008 03:15:06 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m4G7Euwe024600 for ; Fri, 16 May 2008 01:14:56 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m4G2tNCx018330 for ; Fri, 16 May 2008 01:14:55 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3673155861210922068; Fri, 16 May 2008 00:14:28 -0700 Original-Received: from dradamslap1 (/141.144.65.168) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 May 2008 00:14:28 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <003e01c8b534$31cbdd30$0200a8c0@us.oracle.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: Aci1NDE/3pdR89uIRoKvRIrbdk9CyQB31qqw X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by mx20.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97247 gmane.emacs.pretest.bugs:22340 Archived-At: This problem is more widespread than I thought. Menu items can of course contain spaces: , and when used in submenus the same problem arises as for in a submenu. An there are other keys that have spaces and so could make `edmacro-parse-keys' choke in the same way (e.g. if in a submenu). In my `global-map', for instance, I see these keys that contain spaces: The bug is thus with `edmacro-parse-keys', not with the fact of having keys with spaces. > From: Drew Adams Sent: Tuesday, May 13, 2008 1:02 PM > This is a menu item in menu-bar-help-menu: > > > > Evaluating this: > (kbd " Portuguese>") > > produces the following incorrect result: > > [describe describe-language-environment European > 60 66 114 97 122 105 108 105 97 110 80 111 114 > 116 117 103 117 101 115 101 62] > > After tracing edmacro-parse-keys, the problem seems to be here: > > (while (and (< pos (length string)) > (string-match "[^ \t\n\f]+" string pos)) > (let ((word (substring string (match-beginning 0) > (match-end 0))) > > The sexp (substring " > > " 54 64) returns " only half of the > entry. > > IOW, the code is not expecting a space char. Which is the problem: the > edmacro-parse-keys code or the definition of the key itself, > , which includes a space char? > > This problem is not new with Emacs 23, BTW. > > > In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) > of 2008-05-04 on LENNART-69DE564 > Windowing system distributor `Microsoft Corp.', version 5.1.2600 > configured using `configure --with-gcc (3.4) --no-opt > --cflags -Ic:/g/include > -fno-crossjumping' > > > > >