From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: `key-binding' and XEmacs-style events Date: Fri, 02 Mar 2007 09:31:41 +0100 Message-ID: <85y7mg9hci.fsf@lola.goethe.zz> References: <36817.128.165.123.18.1172703473.squirrel@webmail.lanl.gov> <38667.128.165.123.18.1172788075.squirrel@webmail.lanl.gov> <38780.128.165.123.18.1172793133.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172824330 7126 80.91.229.12 (2 Mar 2007 08:32:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 08:32:10 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , rms@gnu.org, "Kim F. Storm" To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 02 09:32:02 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 1HN3BJ-00064p-Uk for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 09:32:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HN3BJ-0000ND-Cv for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2007 03:32:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HN3B6-0000Mv-2Y for emacs-devel@gnu.org; Fri, 02 Mar 2007 03:31:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HN3B4-0000MN-Gn for emacs-devel@gnu.org; Fri, 02 Mar 2007 03:31:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HN3B4-0000MI-Dm for emacs-devel@gnu.org; Fri, 02 Mar 2007 03:31:46 -0500 Original-Received: from mail-in-11.arcor-online.net ([151.189.21.51]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HN3B2-0005U5-3Z; Fri, 02 Mar 2007 03:31:44 -0500 Original-Received: from mail-in-07-z2.arcor-online.net (mail-in-07-z2.arcor-online.net [151.189.8.19]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id ABDFA118B7; Fri, 2 Mar 2007 09:31:42 +0100 (CET) Original-Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-07-z2.arcor-online.net (Postfix) with ESMTP id 9F1752C6E5B; Fri, 2 Mar 2007 09:31:42 +0100 (CET) Original-Received: from lola.goethe.zz (dslb-084-061-009-095.pools.arcor-ip.net [84.61.9.95]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 735C7106E34; Fri, 2 Mar 2007 09:31:42 +0100 (CET) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 01DA31C4D3B2; Fri, 2 Mar 2007 09:31:41 +0100 (CET) In-Reply-To: <38780.128.165.123.18.1172793133.squirrel@webmail.lanl.gov> (Stuart D. Herring's message of "Thu\, 1 Mar 2007 15\:52\:13 -0800 \(PST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:67207 Archived-At: "Stuart D. Herring" writes: >>> We're talking about going the other way -- supporting (key-binding >>> [(?a)]) >>> in Emacs >> >> Yes, but we don't have to fix it. >> >> If you want to write portable code, simply use the GNU Emacs format [?a], >> as this is also supported by XEmacs. > > What I am actually interested in can be seen at > http://www.emacswiki.org/cgi-bin/wiki/unbound.el: this code > mechanically manipulates keystrokes. By far the easiest way to do > this is to generate XEmacs lists with modifiers and base events, > rather than having to generate the symbol 'C-end and the low-ASCII > ?\C-a and the high-bit-set ?\C-` with separate rules. Then the > natural way of representing an unmodified key is a list containing 0 > modifiers and the base event, but that fails (for `key-binding' > only; `lookup-key' and `define-key' accept it) because it doesn't > happen to begin with a symbol. Is it documented anywhere that this a valid way to create a key sequence with modifiers? Should we document it? Should we change EVENT_HAS_PARAMETERS itself maybe? Or EVENTP? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum