unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24875: 26.0.50; In Dotted Pair Notation, the read function returns CDR if CAR is absent
@ 2016-11-04 13:36 Chunyang Xu
  2016-11-04 16:00 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chunyang Xu @ 2016-11-04 13:36 UTC (permalink / raw)
  To: 24875


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?

According to an answer [1] by wasamasa on Emacs StackExchange,
Guile behaves the same, but other Lisp interpreters (csi, pil and sbcl)
and MIT-Scheme don't permit reading this.


[1] http://emacs.stackexchange.com/a/28410/3889







^ permalink raw reply	[flat|nested] 7+ messages in thread
* bug#24875: 26.0.50; In Dotted Pair Notation, the read function returns CDR if CAR is absent
@ 2021-05-18 15:04 Drew Adams
  0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2021-05-18 15:04 UTC (permalink / raw)
  To: 'Drew Adams', Chunyang Xu, 24875@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

> Indeed.  This is not "normal" (usual) Lisp behavior.
> It seems quite bizarre - unexpected, to say the least.
> 
> If this is intentional for Emacs Lisp then the Emacs-Lisp
> doc should both (1) describe this behavior and (2) give the
> rationale behind it.

ping.  Can this please be addressed?

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 12704 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-06 17:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-04 13:36 bug#24875: 26.0.50; In Dotted Pair Notation, the read function returns CDR if CAR is absent Chunyang Xu
2016-11-04 16:00 ` Andreas Schwab
2016-11-04 16:00 ` Drew Adams
2021-07-06 15:32 ` Lars Ingebrigtsen
2021-07-06 16:43   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-06 17:15     ` Lars Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
2021-05-18 15:04 Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).