Created
October 20, 2012 22:54
-
-
Save joekarma/3925120 to your computer and use it in GitHub Desktop.
Get a list of packages that are created as a side effect of evaluating a given bunch of forms (such as quickloading a system)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defmacro packages-created-by (&rest forms) | |
| (with-gensyms (packages-before) | |
| `(let ((,packages-before (list-all-packages))) | |
| ,@forms | |
| (set-difference (list-all-packages) ,packages-before)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment