GNU bug report logs - #61281
“`(a \, b)” equals to “`(a . ,b)”

Previous Next

Package: emacs;

Reported by: Xie Shynur <one.last.kiss <at> outlook.com>

Date: Sat, 4 Feb 2023 23:29:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Drew Adams <drew.adams <at> oracle.com>, Michael Heerdegen <michael_heerdegen <at> web.de>, Xie Shynur <one.last.kiss <at> outlook.com>
Cc: "61281 <at> debbugs.gnu.org" <61281 <at> debbugs.gnu.org>
Subject: bug#61281: “`(a \,  b)” equals to “`(a . , b)”
Date: Mon, 6 Feb 2023 05:22:00 +0000
> `(a  ,@ foo) ; ==> (a 4 5)
> `(a \,@foo)  ; ==> (a \,@ foo) - good
> `(a \,@ foo) ; ==> (a \,@ foo) - good
> 
> `(a  , foo) ; ==> (a 4 5)
> `(a \,foo)  ; ==> (a \,foo) - good
> `(a \, foo) ; ==> (a 4 5)   - bad, the bug case

Sorry for the typos in the comments.
This is what it is:

1. `(a  ,@ foo) ; ==> (a 4 5)
2. `(a \,@foo)  ; ==> (a \,@foo)  - good
3. `(a \,@ foo) ; ==> (a \,@ foo) - good

4. `(a  , foo) ; ==> (a (4 5))
5. `(a \,foo)  ; ==> (a \,foo) - good
6. `(a \, foo) ; ==> (a 4 5)   - bad, bug case

Note that #6 is not the same as #4.  It's not
just that the backslash made no difference.
#6 is the same as #1: the backslash made the
comma act like ,@.





This bug report was last modified 2 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.