GNU bug report logs - #24875
26.0.50; In Dotted Pair Notation, the read function returns CDR if CAR is absent

Previous Next

Package: emacs;

Reported by: Chunyang Xu <mail <at> xuchunyang.me>

Date: Fri, 4 Nov 2016 15:40:03 UTC

Severity: minor

Tags: moreinfo

Found in version 26.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Chunyang Xu <mail <at> xuchunyang.me>
Cc: 24875 <at> debbugs.gnu.org
Subject: bug#24875: 26.0.50; In Dotted Pair Notation, the read function returns CDR if CAR is absent
Date: Fri, 04 Nov 2016 17:00:27 +0100
On Nov 04 2016, Chunyang Xu <mail <at> xuchunyang.me> 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, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 4 years and 15 days ago.

Previous Next


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