[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define key with "\s-" super modifier in string?

From: Kim F. Storm
Subject: Re: define key with "\s-" super modifier in string?
Date: Thu, 08 Dec 2005 15:59:15 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Richard M. Stallman" <address@hidden> 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 <address@hidden> http://www.cua.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]