From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: `key-binding' and XEmacs-style events Date: Thu, 01 Mar 2007 22:28:32 -0500 Message-ID: References: <36817.128.165.123.18.1172703473.squirrel@webmail.lanl.gov> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1172806427 29932 80.91.229.12 (2 Mar 2007 03:33:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 03:33:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 02 04:33:39 2007 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 1HMyWY-0000lA-Ro for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 04:33:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMyWY-0007I4-81 for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 22:33:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMyTD-00049p-VF for emacs-devel@gnu.org; Thu, 01 Mar 2007 22:30:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMyTD-00049W-IU for emacs-devel@gnu.org; Thu, 01 Mar 2007 22:30:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMyTD-00049Q-BC for emacs-devel@gnu.org; Thu, 01 Mar 2007 22:30:11 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMyTD-0007gx-2b for emacs-devel@gnu.org; Thu, 01 Mar 2007 22:30:11 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HMyRc-0007kN-Pe; Thu, 01 Mar 2007 22:28:32 -0500 In-reply-to: (message from Stefan Monnier on Thu, 01 Mar 2007 10:19:40 -0500) X-detected-kernel: 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:67196 Archived-At: AFAIK, [?a] works in XEmacs as well. It's only when you have modifiers that the Emacs syntax is not understood by XEmacs. I quoted the wrong part of his message. This is the actual bug: I have noticed, when writing some automatic key-generation code, that (key-binding [(?a)]) (or any other character) yields a type error because ?a is not a symbol. The problem is that at keymap.c:1615, if the function's argument is a vector and its first element is a cons, it is assumed that the element is a mouse-like event which is a list started by a symbol. Would someone please fix this, then ack?