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
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> FWIW, I think this `values` thingy should die.
I agree -- we could mark it obsolete now, but we'd have to rewrite the
one place where it's actually used:
(defun elisp--eval-defun ()
[...]
(eval-region beg end standard-output
(lambda (_ignore)
;; Skipping to the end of the specified region
;; will make eval-region return.
(goto-char end)
form))))))
(let ((str (eval-expression-print-format (car values))))
(if str (princ str)))
;; The result of evaluation has been put onto VALUES. So return it.
(car values))
`eval-region' just returns nil, but that `lambda' could just capture the
value instead of the functoin then looking in `values', I think? So the
one usage looks like it could be trivially rewritten.
--
(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.