From 898a0234c9054c155414dcfac4e3e9565a0b144c Mon Sep 17 00:00:00 2001 From: "Charles A. Roelli" Date: Sat, 22 Dec 2018 17:28:35 +0100 Subject: [PATCH] Macroexpand before evaluating in eval-expression (bis) * lisp/simple.el (eval-expression): Macroexpand before evaluating. This repeats the fix made for Bug#20730 in another branch of the code a few lines down. --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 6765f1c9955..905477a1420 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1615,7 +1615,7 @@ this command arranges for all errors to enter the debugger." (eval-expression-get-print-arguments current-prefix-arg))) (if (null eval-expression-debug-on-error) - (push (eval exp lexical-binding) values) + (push (eval (macroexpand-all exp) lexical-binding) values) (let ((old-value (make-symbol "t")) new-value) ;; Bind debug-on-error to something unique so that we can ;; detect when evalled code changes it. -- 2.39.5