[slime-devel] Autodoc mode and the typeout frame
Geoff Wozniak
geoff at wozniak.ca
Thu Jun 14 20:54:18 UTC 2007
When the typeout frame is active, autodoc output is sent to the frame
using a call to SLIME-TYPEOUT-MESSAGE in SLIME-AUTODOC-MESSAGE. In
turn, SLIME-TYPEOUT-MESSAGE applies FORMAT to the string to display
it. This causes a fair number of errors when the string contains the
% character and eventually autodoc-mode shuts off.
I've attached a patch to fix it against the latest version. All it
does is call REPLACE-REGEXP-IN-STRING before the string is sent to
SLIME-TYPEOUT-MESSAGE.
I'm not convinced this solution is at all elegant, but I'm not
familiar with the architecture of Slime enough to know what a better
solution might be. It's a hack since it's not terribly robust: right
now no format arguments are passed to SLIME-TYPEOUT-MESSAGE but if
they are, then the hack provided (likely) won't work.
Anyway, this patch solves my immediate problem and I thought it was a
point worth bringing up.
And am I one of the only people to use a typeout frame? :)
--
Geoff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20070614/e6a6998a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slime-typeout-message.patch
Type: application/octet-stream
Size: 347 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20070614/e6a6998a/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20070614/e6a6998a/attachment-0001.html>
More information about the slime-devel
mailing list