mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Record the value of C-x C-e' in values'
* lisp/progmodes/elisp-mode.el (eval-last-sexp): Record the value in `values' (bug#22066) since we're messaging it.
This commit is contained in:
parent
9fdc753e14
commit
4428c27c1a
1 changed files with 3 additions and 1 deletions
|
|
@ -1268,7 +1268,9 @@ If `eval-expression-debug-on-error' is non-nil, which is the default,
|
|||
this command arranges for all errors to enter the debugger."
|
||||
(interactive "P")
|
||||
(if (null eval-expression-debug-on-error)
|
||||
(elisp--eval-last-sexp eval-last-sexp-arg-internal)
|
||||
(let ((value (elisp--eval-last-sexp eval-last-sexp-arg-internal)))
|
||||
(push value values)
|
||||
value)
|
||||
(let ((value
|
||||
(let ((debug-on-error elisp--eval-last-sexp-fake-value))
|
||||
(cons (elisp--eval-last-sexp eval-last-sexp-arg-internal)
|
||||
|
|
|
|||
Loading…
Reference in a new issue