From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 23597@debbugs.gnu.org
Subject: bug#23597: 24.5; `cl-values-list' should not be an alias for `identity'
Date: Sun, 28 Jul 2019 14:15:31 +0200 [thread overview]
Message-ID: <87v9vmbbj0.fsf@mouse.gnus.org> (raw)
In-Reply-To: <ab836a2e-5474-4070-8040-f03c17244f43@default> (Drew Adams's message of "Sat, 21 May 2016 17:25:47 -0700 (PDT)")
Drew Adams <drew.adams@oracle.com> writes:
> Emacs Lisp does not support multiple values for its Common Lisp
> emulation. OK, fine.
>
> But that is not a reason for this kind of definition.
>
> `cl-values-list' should at least raise an error if its arg is not a
> list. That too is part of the Common Lisp definition of `values-list':
> "Should signal type-error if its argument is not a proper list."
>
> (cl-values-list 5) should not return 5. It should raise a wrong-type
> arg error.
I agree.
I've gone through the Emacs trunk to see whether tightening up the
definition would lead to any problems, but all the usages are on the
form
(cl-multiple-value-bind (tree header tree-buffer)
(cl-values-list (ebrowse-choose-tree))
which would already bug out if what's returned is not a list.
So I've now made this change on the trunk. In the unlikely case that
this leads to problems with out-of-tree code, we should be open to
reverting it.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2019-07-28 12:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-22 0:25 bug#23597: 24.5; `cl-values-list' should not be an alias for `identity' Drew Adams
2019-07-28 12:15 ` Lars Ingebrigtsen [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9vmbbj0.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=23597@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.