[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34975: 26.1.92; In backquote, the comma marker does not work with va
From: |
Michael Heerdegen |
Subject: |
bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot |
Date: |
Sun, 24 Mar 2019 16:16:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Xu Chunyang <mail@xuchunyang.me> writes:
> For example,
>
> (let ((.foo 42))
> (list .foo))
> ;; => (42)
>
> (let ((.foo 42))
> `(,.foo))
> ;; => ((\,\. foo))
>
> I expect both of them returns (42). is it a bug?
AFAIU ,. is a reader macro:
(car (read ",.foo"))
==> \,\.
I dunno or have forgotten for what it had been intended, there are no
real uses in the Emacs Elisp sources.
> (let ((.foo 42))
> `(,.foo))
You would have to write it differently, e.g.
(let ((.foo 42))
`((\, .foo)))
==> (42)
Michael.
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot, Xu Chunyang, 2019/03/24
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot,
Michael Heerdegen <=
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot, Drew Adams, 2019/03/24
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot, Michael Heerdegen, 2019/03/24
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot, Drew Adams, 2019/03/25
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot, Michael Heerdegen, 2019/03/25
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot, Andreas Schwab, 2019/03/26
- bug#34975: 26.1.92; In backquote, the comma marker does not work with variable name started with dot, Michael Heerdegen, 2019/03/26