popup.el's popup-tip
is pretty awesome - check it out. I'm trying to get it to display the output of SLIME's display-documentation
method, using the current word pointed by the caret as the argument.
The problem is that display-documentation
doesn't return a string but directly displays Swank's output on a buffer:
(popup-tip (slime-documentation "some_name")) ;; fails
I've tried to understand SLIME's source, but failed to do so. How to get a docstring with Slime/Swank for a given name?