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? :)
On 14-Jun-07, at 4:54 PM, Geoff Wozniak wrote:
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 forgot to mention that I'm running this under Aquamacs 1.0a, which is based on GNU Emacs 22.1.50.1.
Date: Thu, 14 Jun 2007 16:54:18 -0400 From: Geoff Wozniak geoff@wozniak.ca
I've attached a patch to fix it against the latest version.
It looks like your patch got attached only as a subpart of the HTML alternative of a MIME multipart/alternative message.
On Thu, 14 Jun 2007 19:39:48 -0400, Geoff Wozniak said:
On 14-Jun-07, at 4:59 PM, Taylor R Campbell wrote:
It looks like your patch got attached only as a subpart of the HTML alternative of a MIME multipart/alternative message.
Hopefully this one is better.
I think this is better:
(slime-typeout-message "%s" doc)
There is another broken one in slime-background-message.
__Martin
Martin Simmons martin@lispworks.com writes:
I think this is better:
(slime-typeout-message "%s" doc)
There is another broken one in slime-background-message.
Fixed in CVS, thanks.