[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define key with "\s-" super modifier in string?

From: Kim F. Storm
Subject: Re: define key with "\s-" super modifier in string?
Date: Fri, 09 Dec 2005 10:06:27 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> 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 <address@hidden> http://www.cua.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]