From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org, rms@gnu.org, epronk@muftor.com, janneke@gnu.org
Subject: Re: define key with "\s-" super modifier in string?
Date: Fri, 09 Dec 2005 10:06:27 +0100 [thread overview]
Message-ID: <m3ek4miqr0.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <87mzjbck39.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 08 Dec 2005 17:16:02 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 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.
>
> This was discussed here a while back and the decision was made to also
> consider \s in strings as a space.
>
>> I made a change to do that.
>
> You mean you've undone this change? Please check the thread again, to see
> why we ended up deciding that \s should be allowed in strings.
Note that \s still gives as a space in strings EXCEPT with followed by a hyphen.
I.e. "\sX" => " X", while "\s-X" signals an error.
Given the recent example of trying to bind super-X with a string arg
to define-key I agree with Richard's change.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2005-12-09 9:06 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
2005-12-08 22:16 ` Stefan Monnier
2005-12-09 9:06 ` Kim F. Storm [this message]
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=m3ek4miqr0.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=epronk@muftor.com \
--cc=janneke@gnu.org \
--cc=rms@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).