1- I don't think asdf.lisp itself is the right place for this function, although if someone starts a formal asdf-contrib system, it should definitely be there.
2- For extra brownies, you ought to handle arbitrary nickname conflicts, and properly restore things afterwards. You can assume no conflict in the initial state, and have the function return a list of the reverse changes, that you'd apply on the other side of the unwind-protect.
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
2011/10/18 Gábor Balázs gabalz@gmail.com:
Here is the implementation for call-with-package-renamings (see attachment). I also attached its test case. I successfully tested this on ccl, scl and clisp. The run-tests.sh script didn't work for me with sbcl (conflicted with my system settings), so I skipped that...
Best, `bg`