unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* define key with "\s-" super modifier in string?
@ 2005-12-07 19:27 Jan Nieuwenhuizen
  2005-12-07 22:57 ` Stefan Monnier
  2005-12-08  4:54 ` Richard M. Stallman
  0 siblings, 2 replies; 10+ messages in thread
From: Jan Nieuwenhuizen @ 2005-12-07 19:27 UTC (permalink / raw)
  Cc: epronk


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.

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-12-09 15:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 19:27 define key with "\s-" super modifier in string? Jan Nieuwenhuizen
2005-12-07 22:57 ` Stefan Monnier
2005-12-08  4:54 ` Richard M. Stallman
2005-12-08 14:59   ` Kim F. Storm
2005-12-08 19:12   ` Jan Nieuwenhuizen
2005-12-09  1:42     ` Richard M. Stallman
2005-12-08 19:29   ` Richard M. Stallman
2005-12-08 22:16     ` Stefan Monnier
2005-12-09  9:06       ` Kim F. Storm
2005-12-09 15:02       ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).