* lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
[bpt/emacs.git] / lisp / emacs-lisp / lisp-mode.el
index ae85505..02b020f 100644 (file)
@@ -809,6 +809,7 @@ With argument, print output into current buffer."
 (defun eval-sexp-add-defvars (exp &optional pos)
   "Prepend EXP with all the `defvar's that precede it in the buffer.
 POS specifies the starting position where EXP was found and defaults to point."
+  (setq exp (macroexpand-all exp))      ;Eager macro-expansion.
   (if (not lexical-binding)
       exp
     (save-excursion