Subject: Re: bug#22066: 24.5; documentation for "values" is not accurate

From: Stefan Monnier <[email-masked]>
Date: Mon, 08 Feb 2021 12:07:56 -0500

> I agree -- we could mark it obsolete now, but we'd have to rewrite the
> one place where it's actually used:

Indeed, but it shouldn't be too hard.

> `eval-region' just returns nil, but that `lambda' could just capture the
> value instead of the functoin then looking in `values', I think?

The lambda is the read-function, so it doesn't receive the return value.
But we could just wrap the form inside
a `(setq elisp--eval-defun-result ,form)

        Stefan