mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
* lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
eagerly. Fixes: debbugs:14422
This commit is contained in:
parent
a8a7c5f651
commit
1f8fdd5391
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue