Skip to content

Instantly share code, notes, and snippets.

@joekarma
Created October 20, 2012 22:54
Show Gist options
  • Select an option

  • Save joekarma/3925120 to your computer and use it in GitHub Desktop.

Select an option

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)
(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