From: Charles A. Roelli Date: Sat, 22 Dec 2018 16:28:35 +0000 (+0100) Subject: Macroexpand before evaluating in eval-expression (bis) X-Git-Tag: emacs-27.0.90~3933 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=898a0234c9054c155414dcfac4e3e9565a0b144c;p=emacs.git 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. --- 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.