From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: define key with "\s-" super modifier in string? Date: Thu, 08 Dec 2005 15:59:15 +0100 Message-ID: References: <874q5kr9l8.fsf@peder.flower> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134062809 3507 80.91.229.2 (8 Dec 2005 17:26:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2005 17:26:49 +0000 (UTC) Cc: emacs-devel@gnu.org, epronk@muftor.com, Jan Nieuwenhuizen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 08 18:26:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EkPVh-0007Bw-Ln for ged-emacs-devel@m.gmane.org; Thu, 08 Dec 2005 18:24:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkPVz-0001Sa-FM for ged-emacs-devel@m.gmane.org; Thu, 08 Dec 2005 12:25:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkNGi-0007AM-Kr for emacs-devel@gnu.org; Thu, 08 Dec 2005 10:01:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkNG3-0006o5-GC for emacs-devel@gnu.org; Thu, 08 Dec 2005 10:00:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkNFs-0006eK-Pk for emacs-devel@gnu.org; Thu, 08 Dec 2005 10:00:20 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EkNGr-0000Vj-4c; Thu, 08 Dec 2005 10:01:21 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id C15B347FF47; Thu, 8 Dec 2005 15:59:52 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Wed, 07 Dec 2005 23:54:01 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:47229 Archived-At: "Richard M. Stallman" writes: > (global-set-key "\s-n" 'compile) > > Debugger entered--Lisp error: (error "Key sequence SPC - n uses invalid prefix characters") > ... > > Is this a bug? > > It is correct to signal an error, because you can't put a super-char > in a string. It isn't complaining about super modifier here. In a string, \s means SPC, so the error (correctly) states that SPC cannot be used as a prefix key in global-map. > Maybe the error message should say that more specifically. It would have to look for [SPC minus] in the string to guess that the user probably tried to bind the super modifier... That's just too obscure IMO. -- Kim F. Storm http://www.cua.dk