diff options
| author | Stefan Monnier | 2013-06-03 11:28:10 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-06-03 11:28:10 -0400 |
| commit | 1f8fdd5391e2346e181ab7cb19144d072efdc7f7 (patch) | |
| tree | 968f76be97ab130c32f4f450ff6271a89ef05f50 | |
| parent | a8a7c5f651cd9c3d354a4cb4938e5289d4cbbe4b (diff) | |
| download | emacs-1f8fdd5391e2346e181ab7cb19144d072efdc7f7.tar.gz emacs-1f8fdd5391e2346e181ab7cb19144d072efdc7f7.zip | |
* lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
eagerly.
Fixes: debbugs:14422
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d33cec3ab05..ac3dbcf906b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros | ||
| 4 | eagerly (bug#14422). | ||
| 5 | |||
| 1 | 2013-06-03 Michael Albinus <michael.albinus@gmx.de> | 6 | 2013-06-03 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * autorevert.el (auto-revert-notify-enabled) | 8 | * 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." | |||
| 809 | (defun eval-sexp-add-defvars (exp &optional pos) | 809 | (defun eval-sexp-add-defvars (exp &optional pos) |
| 810 | "Prepend EXP with all the `defvar's that precede it in the buffer. | 810 | "Prepend EXP with all the `defvar's that precede it in the buffer. |
| 811 | POS specifies the starting position where EXP was found and defaults to point." | 811 | POS specifies the starting position where EXP was found and defaults to point." |
| 812 | (setq exp (macroexpand-all exp)) ;Eager macro-expansion. | ||
| 812 | (if (not lexical-binding) | 813 | (if (not lexical-binding) |
| 813 | exp | 814 | exp |
| 814 | (save-excursion | 815 | (save-excursion |