[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 4428c27: Record the value of `C-x C-e' in `values'
From: |
Lars Ingebrigtsen |
Subject: |
master 4428c27: Record the value of `C-x C-e' in `values' |
Date: |
Mon, 8 Feb 2021 02:15:55 -0500 (EST) |
branch: master
commit 4428c27c1ae7d5fe5233e8d7b001a8cd2fcdc56f
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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.
---
lisp/progmodes/elisp-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 9348a7f..a096866 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 4428c27: Record the value of `C-x C-e' in `values',
Lars Ingebrigtsen <=