From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org, epronk@muftor.com,
Jan Nieuwenhuizen <janneke@gnu.org>
Subject: Re: define key with "\s-" super modifier in string?
Date: Thu, 08 Dec 2005 15:59:15 +0100 [thread overview]
Message-ID: <m364pzmy7w.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1EkDn7-00041U-Ne@fencepost.gnu.org> (Richard M. Stallman's message of "Wed, 07 Dec 2005 23:54:01 -0500")
"Richard M. Stallman" <rms@gnu.org> 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 <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2005-12-08 14:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=m364pzmy7w.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=epronk@muftor.com \
--cc=janneke@gnu.org \
/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).