unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chunyang Xu <mail@xuchunyang.me>
To: 24875@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 21:36:38 +0800	[thread overview]
Message-ID: <87fun7v02h.fsf@xuchunyang.me> (raw)


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







             reply	other threads:[~2016-11-04 13:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04 13:36 Chunyang Xu [this message]
2016-11-04 16:00 ` bug#24875: 26.0.50; In Dotted Pair Notation, the read function returns CDR if CAR is absent 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fun7v02h.fsf@xuchunyang.me \
    --to=mail@xuchunyang.me \
    --cc=24875@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).