From: Stefan Monnier Date: Mon, 3 Jun 2013 15:28:10 +0000 (-0400) Subject: * lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~85^2~9 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f8fdd5391e2346e181ab7cb19144d072efdc7f7;p=emacs.git * lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros eagerly. Fixes: debbugs:14422 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d33cec3ab05..ac3dbcf906b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-06-03 Stefan Monnier + + * emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros + eagerly (bug#14422). + 2013-06-03 Michael Albinus * autorevert.el (auto-revert-notify-enabled) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index ae855052524..02b020fa241 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -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