From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; kbd returns wrong value Date: Fri, 16 May 2008 11:32:17 +0200 Message-ID: <86zlqqy4pq.fsf@lola.quinscape.zz> References: <003e01c8b534$31cbdd30$0200a8c0@us.oracle.com> <004201c8b724$7c7cabb0$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210930374 28971 80.91.229.12 (16 May 2008 09:32:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 09:32:54 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 11:33:30 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 1JwwJe-0002XG-8T for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 11:33:30 +0200 Original-Received: from localhost ([127.0.0.1]:58492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwwIu-00034H-17 for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 05:32:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwwIl-00033R-Oj for emacs-devel@gnu.org; Fri, 16 May 2008 05:32:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwwIk-00032p-B3 for emacs-devel@gnu.org; Fri, 16 May 2008 05:32:35 -0400 Original-Received: from [199.232.76.173] (port=48490 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwwIj-00032W-Rp for emacs-devel@gnu.org; Fri, 16 May 2008 05:32:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:57054) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwwIi-0000IN-SL for emacs-devel@gnu.org; Fri, 16 May 2008 05:32:33 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:39265 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JwwHf-000770-9F for emacs-pretest-bug@gnu.org; Fri, 16 May 2008 05:31:27 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JwwId-0000EM-Vm for emacs-pretest-bug@gnu.org; Fri, 16 May 2008 05:32:31 -0400 Original-Received: from mail.quinscape.de ([212.29.44.217]:49376) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JwwIW-0000CL-Pk for emacs-pretest-bug@gnu.org; Fri, 16 May 2008 05:32:21 -0400 Original-Received: (qmail-ldap/ctrl 1109 invoked from network); 16 May 2008 09:32:18 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by quinx.quinscape.de (qmail-ldap-1.03) with SMTP for ; 16 May 2008 09:32:18 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id 18CE58F03F; Fri, 16 May 2008 11:32:17 +0200 (CEST) In-Reply-To: <004201c8b724$7c7cabb0$0200a8c0@us.oracle.com> (Drew Adams's message of "Fri, 16 May 2008 00:14:30 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-AntiVirus: checked by AntiVir MailGate (version: 2.1.3-2; AVE: 7.8.0.19; VDF: 7.0.4.48; host: quinx) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:97255 gmane.emacs.pretest.bugs:22341 Archived-At: "Drew Adams" writes: > 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. So how about using >> 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))) (string-match "[^ \t\n\f<]+\\|<[^>]+>" ... instead? -- David Kastrup