[Top][All Lists]

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

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

From: Jan Nieuwenhuizen
Subject: define key with "\s-" super modifier in string?
Date: Wed, 07 Dec 2005 20:27:47 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

With CVS emacs, I get

    (global-set-key "\s-n" 'compile)

    Debugger entered--Lisp error: (error "Key sequence SPC - n uses invalid 
prefix characters")

Is this a bug?

I can understand what sort of thing happens, and

    (global-set-key [?\s-n] 'compile)

works, but it isn't very friendly eps. as the documentation has
examples using strings, eg

     (global-set-key "\C-z" 'shell)

The documentation mentions exceptions, but does not include \s

       When the key sequence includes function keys or mouse button
   events, or non-ASCII characters such as `C-=' or `H-a', you must
   use the more general method of rebinding, which uses a vector to
   specify the key sequence.


Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

reply via email to

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