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: More key strangeness (was: 23.0.60; kbd returns wrong value) Date: Sun, 18 May 2008 11:26:20 +0200 Message-ID: <85tzgwufnn.fsf_-_@lola.goethe.zz> References: <003e01c8b534$31cbdd30$0200a8c0@us.oracle.com> <004201c8b724$7c7cabb0$0200a8c0@us.oracle.com> <86zlqqy4pq.fsf@lola.quinscape.zz> <004601c8b8a8$85c89230$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 1211103405 20815 80.91.229.12 (18 May 2008 09:36:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2008 09:36:45 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 'Stefan Monnier' To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 18 11:37:21 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 1JxfKS-0005e1-6D for ged-emacs-devel@m.gmane.org; Sun, 18 May 2008 11:37:20 +0200 Original-Received: from localhost ([127.0.0.1]:54307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxfJh-0008Ta-Sy for ged-emacs-devel@m.gmane.org; Sun, 18 May 2008 05:36:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxfA0-000650-OK for emacs-devel@gnu.org; Sun, 18 May 2008 05:26:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jxf9w-00063M-I4 for emacs-devel@gnu.org; Sun, 18 May 2008 05:26:32 -0400 Original-Received: from [199.232.76.173] (port=38032 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jxf9v-000638-CK for emacs-devel@gnu.org; Sun, 18 May 2008 05:26:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:59031) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jxf9v-0004ch-1D for emacs-devel@gnu.org; Sun, 18 May 2008 05:26:27 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:49003 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jxf8l-0007Ga-MM for emacs-pretest-bug@gnu.org; Sun, 18 May 2008 05:25:15 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jxf9q-0004c1-Ej for emacs-pretest-bug@gnu.org; Sun, 18 May 2008 05:26:26 -0400 Original-Received: from mail-in-03.arcor-online.net ([151.189.21.43]:51445) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jxf9q-0004bh-5E for emacs-pretest-bug@gnu.org; Sun, 18 May 2008 05:26:22 -0400 Original-Received: from mail-in-20-z2.arcor-online.net (mail-in-20-z2.arcor-online.net [151.189.8.85]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id B544C2CAD50; Sun, 18 May 2008 11:26:20 +0200 (CEST) Original-Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-20-z2.arcor-online.net (Postfix) with ESMTP id A8FD5107911; Sun, 18 May 2008 11:26:20 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-092-161.pools.arcor-ip.net [84.61.92.161]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id 7659137A422; Sun, 18 May 2008 11:26:20 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 235951C464F7; Sun, 18 May 2008 11:26:20 +0200 (CEST) In-Reply-To: <004601c8b8a8$85c89230$0200a8c0@us.oracle.com> (Drew Adams's message of "Sat, 17 May 2008 22:32:11 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.92.1/7147/Sun May 18 03:30:04 2008 on mail-in-09.arcor-online.net X-Virus-Status: Clean 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:97357 gmane.emacs.pretest.bugs:22374 Archived-At: "Drew Adams" writes: >> > (string-match "[^ \t\n\f<]+\\|<[^>]+>" ... >> >> To avoid problems with C-x < and such, I'd recomment >> (string-match "[^ \t\n\f<]+\\|<[^ \n>]\\(?:[^>]*[^ >\n]\\)?>" ... >> So there can be spaces in symbols, but not as first or last char. > > See my previous message in reply to David, and my followup to that. Like David's > suggestion for the regexp, yours fails for "C-x <": > > (edmacro-parse-keys "C-x <") gives "^X" (control-x character). > >> The handling of "C-x <<" and such shouldn't matter because >> these aren't valid anyway. > > Then what is that part of the code for? Addin some comments to the code would > help understanding. Typing C-h k C-x gives the resulting error message C-x is undefined in the *Messages* buffer, but is undefined in the echo area. Wow. Where does that discrepancy come from? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum