From: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: epronk@muftor.com
Subject: define key with "\s-" super modifier in string?
Date: Wed, 07 Dec 2005 20:27:47 +0100 [thread overview]
Message-ID: <874q5kr9l8.fsf@peder.flower> (raw)
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
next reply other threads:[~2005-12-07 19:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 19:27 Jan Nieuwenhuizen [this message]
2005-12-07 22:57 ` define key with "\s-" super modifier in string? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874q5kr9l8.fsf@peder.flower \
--to=janneke@gnu.org \
--cc=epronk@muftor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).