unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: epronk@muftor.com, emacs-devel@gnu.org
Subject: Re: define key with "\s-" super modifier in string?
Date: Wed, 07 Dec 2005 23:54:01 -0500	[thread overview]
Message-ID: <E1EkDn7-00041U-Ne@fencepost.gnu.org> (raw)
In-Reply-To: <874q5kr9l8.fsf@peder.flower> (message from Jan Nieuwenhuizen on Wed, 07 Dec 2005 20:27:47 +0100)

	(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.

Maybe the error message should say that more specifically.

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

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

The manual explains using vectors for this.
Would you please be more precise than "the documentation"?
Where precisely are you talking about?

    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.

It does not say this is a complete list of non-ASCII characters, so
why are you surprised that there are others?

  parent reply	other threads:[~2005-12-08  4:54 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 [this message]
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=E1EkDn7-00041U-Ne@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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).