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: 23.0.60; kbd returns wrong value Date: Tue, 13 May 2008 13:01:55 -0700 Message-ID: <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 1210708976 3215 80.91.229.12 (13 May 2008 20:02:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2008 20:02:56 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 13 22:03:32 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 1Jw0iH-0003XK-Mx for ged-emacs-devel@m.gmane.org; Tue, 13 May 2008 22:03:05 +0200 Original-Received: from localhost ([127.0.0.1]:33230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jw0hY-0005MP-4E for ged-emacs-devel@m.gmane.org; Tue, 13 May 2008 16:02:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jw0hP-0005Lp-L9 for emacs-devel@gnu.org; Tue, 13 May 2008 16:02:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jw0hM-0005Ig-OA for emacs-devel@gnu.org; Tue, 13 May 2008 16:02:11 -0400 Original-Received: from [199.232.76.173] (port=56402 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jw0hM-0005IX-8y for emacs-devel@gnu.org; Tue, 13 May 2008 16:02:08 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:33177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jw0hL-0004UK-Gb for emacs-devel@gnu.org; Tue, 13 May 2008 16:02:07 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:38304 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jw0gP-0006f9-5s for emacs-pretest-bug@gnu.org; Tue, 13 May 2008 16:01:09 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jw0hH-0004Sv-E3 for emacs-pretest-bug@gnu.org; Tue, 13 May 2008 16:02:07 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:11222) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jw0hG-0004SJ-U0 for emacs-pretest-bug@gnu.org; Tue, 13 May 2008 16:02:03 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m4DK1wPq026998 for ; Tue, 13 May 2008 14:02:00 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m4DK1vqM020297 for ; Tue, 13 May 2008 14:01:58 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3670738971210708913; Tue, 13 May 2008 13:01:53 -0700 Original-Received: from dradamslap1 (/141.144.89.224) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 13 May 2008 13:01:52 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: Aci1NDE/3pdR89uIRoKvRIrbdk9CyQ== X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:97100 gmane.emacs.pretest.bugs:22303 Archived-At: This is a menu item in menu-bar-help-menu: Evaluating this: (kbd " ") 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 ", 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'