I want to use some functions inside another package with a long name (e.g., "sb-bsd-sockets"), and I have to write this:
(defun myfun (...)
(sb-bsd-sockets:socket-bind ...)
(sb-bsd-sockets:socket-listen ...)
...)
Is there a way to import some of those symbols only available inside myfun
(without any performance loss)?
The following is the first thing that popped into my head (a simple tree walk and replace of symbol names).
It should be noted that the question was about importing symbols and the following does not do that. It simply adds the ugly package-name:: part for you.
Usage example:
The above expanded to: