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
2a8160e6
Commit
2a8160e6
authored
Nov 01, 1994
by
Richard M. Stallman
Browse files
(cl-macroexpand): keep documentation from `macroexpand'.
parent
71e2ab54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lisp/emacs-lisp/cl.el
lisp/emacs-lisp/cl.el
+7
-0
No files found.
lisp/emacs-lisp/cl.el
View file @
2a8160e6
...
...
@@ -254,6 +254,13 @@ Keywords supported: :test :test-not :key"
(
defalias
'macroexpand
'cl-macroexpand
)))
(
defun
cl-macroexpand
(
cl-macro
&optional
cl-env
)
"Return result of expanding macros at top level of FORM.
If FORM is not a macro call, it is returned unchanged.
Otherwise, the macro is expanded and the expansion is considered
in place of FORM. When a non-macro-call results, it is returned.
The second optional arg ENVIRONMENT species an environment of macro
definitions to shadow the loaded ones for use in file byte-compilation."
(
let
((
cl-macro-environment
cl-env
))
(
while
(
progn
(
setq
cl-macro
(
funcall
cl-old-macroexpand
cl-macro
cl-env
))
(
and
(
symbolp
cl-macro
)
...
...
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