Subject: Re: bug#24875: 26.0.50; In Dotted Pair Notation, the read function returns CDR if CAR is absent

From: Andreas Schwab <[email-masked]>
Date: Fri, 04 Nov 2016 17:00:27 +0100

On Nov 04 2016, Chunyang Xu <[email-masked]> wrote:

> For example, I eval this in the *scratch* buffer:
>
> (read "( . 123)")
>      ⇒ 123
>
> (read "(1 . ( . (3 . nil)))")
>      ⇒ (1 3)
>
> I can't find explanation about this behavior in elisp manual. Is it
> expected?

The Emacs Lisp reader has always worked that way.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."