Commit d9ce5417 authored by Eric Timmons's avatar Eric Timmons
Browse files

Make define-package macro expansion more backwards compatible

Only include `:local-nicknames` as an argument to `ensure-package` if it is
non-NIL.

Fixes #84
parent ecd37867
Pipeline #4358 passed with stage
......@@ -809,7 +809,8 @@ or when loading the package is optional."
:import-from ',import-from :export ',export :intern ',intern
:recycle ',(if recycle-p recycle (cons package nicknames))
:mix ',mix :reexport ',reexport :unintern ',unintern
:local-nicknames ',local-nicknames)))))
,@(when local-nicknames
`(:local-nicknames ',local-nicknames)))))))
(defmacro define-package (package &rest clauses)
"DEFINE-PACKAGE takes a PACKAGE and a number of CLAUSES, of the form
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment