Sen,
I should start by saying that I have tried to do what you are doing but for
the most part, have not found a perfect solution. I have become of the
opinion that this amount of control over small issues is appropriately
placed on the back burner by SBCL maintainers.
Here is what I have found. SBCL does offer some ways to control verbosity.
Check out the SBCL manual:
http://www.sbcl.org/manual/Controlling-Verbosity.html#Controlling-Verbosity
This deals with muffling compiler notes via the sb-ext:muffle-conditions
declarations. I am not sure if you are bothered by compiler notes; they
only come about when someone asks for speed optimized code and SBCL cannot
optimize as much as it wishes it could. This does not get rid of the
style-warning messages.
On the next page of the manual there is a sentence alluding to ongoing work
to increase the amount of control users have over messages through the
sb-ext:muffle-conditions declaration. In fact, reading this again, it seems
that they are saying that (declaim (sb-ext:muffle-conditions style-warning))
should do the trick, but it doesn't, go figure. (sb-ext:muffle-conditions
warning) does, but that is usually something you want to leave on (and it
also doesn't do what you want). Maybe this lack of control over
style-warning is a bug, maybe you can fix it. Maybe it already has been
fixed, my SBCL is a few months old.
You can use this:
(defmacro style-warning-suppressor (&rest body)
`(handler-bind ((style-warning #'muffle-warning))
, at body))
which appropriately eats style-warnings. But that means that we would need
to wrap any call to the Lisp system in the macro, like this:
(style-warning-suppressor form*)
So that is more annoying than the original messages. On the other hand,
this should work for any ansi Lisp. The wrapping could be done by maxima
itself, by the maxima front end, or, most appropriately, by your own Lisp
read-eval-print-listen function.
In short, until (declaim (sb-ext:muffle-conditions style-warnings)) does
what you want, the other solutions are too heavy handed and it seems that
the effort it takes to the affect it has is really high.
Hope something here helps,
Zach
On Wed, May 7, 2008 at 7:35 PM, S. Newhouse <sen1 at math.msu.edu> wrote:
> Hello,
> How do I turn off the warning messages in sbcl?
>
> Anything I do produces a bunch of 'redefining this or that' to the screen.
>
> TIA,
> -sen
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>