GNU bug report logs -
#22066
24.5; documentation for "values" is not accurate
Previous Next
Reported by: Shiyao Ma <i <at> introo.me>
Date: Tue, 1 Dec 2015 08:42:02 UTC
Severity: minor
Tags: fixed
Found in version 24.5
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
Shiyao Ma <i <at> introo.me> writes:
> the documentation of "values" (c-h v values) is not accurate.
>
> (setq x 1) C-x C-e
> values C-x C-e
>
> In the above form, values is "nil". However, per the doc, "values"
> should be (1).
>
> On the other side, M-: does work.
(I'm going through old bug reports that have unfortunately not gotten
any responses.)
---
values is a variable defined in ‘lread.c’.
[...]
List of values of all expressions which were read, evaluated and printed.
Order is reverse chronological.
---
Yes, that seems inaccurate. It set in the readevalloop function, which
is probably what whoever wrote this meant to refer to, but that's not
very useful information.
But I'm not quite sure what the actual semantics are. `eval-expression'
definitely sets it, but are there other functions that do?
`eval-last-sexp' doesn't, even when given a prefix (when it does read,
evaluate and print something).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 99 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.