Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1f8fdd53
Commit
1f8fdd53
authored
Jun 03, 2013
by
Stefan Monnier
Browse files
* lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
eagerly. Fixes: debbugs:14422
parent
a8a7c5f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/lisp-mode.el
+1
-0
No files found.
lisp/ChangeLog
View file @
1f8fdd53
2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros
eagerly (bug#14422).
2013-06-03 Michael Albinus <michael.albinus@gmx.de>
* autorevert.el (auto-revert-notify-enabled)
lisp/emacs-lisp/lisp-mode.el
View file @
1f8fdd53
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment