unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org, epronk@muftor.com, janneke@gnu.org
Subject: Re: define key with "\s-" super modifier in string?
Date: Thu, 08 Dec 2005 14:29:25 -0500	[thread overview]
Message-ID: <E1EkRSH-0001bR-Sb@fencepost.gnu.org> (raw)
In-Reply-To: <E1EkDn7-00041U-Ne@fencepost.gnu.org> (rms@gnu.org)

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

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

The presence of SPC in the error message is certainly a bug.

The main purpose of \s for space is for character constants.
So it seems to be a mistake to treat \s as space in string constants
even when followed by dash.  It should get an error at read time.
I made a change to do that.

  parent reply	other threads:[~2005-12-08 19:29 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
2005-12-08 19:12   ` Jan Nieuwenhuizen
2005-12-09  1:42     ` Richard M. Stallman
2005-12-08 19:29   ` Richard M. Stallman [this message]
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=E1EkRSH-0001bR-Sb@fencepost.gnu.org \
    --to=rms@gnu.org \
    --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).