[pro] simple-style-warning
![](https://secure.gravatar.com/avatar/6a2a0564e2c584c8e9fa1ec369bd23e0.jpg?s=120&d=mm&r=g)
Is there a portable way to create a simple-style-warning condition that when signaled with WARN won't cause SLIME to claim that file compilation failed, that works for all/most CL implementations? I'm trying to use this: (define-condition simple-style-warning (style-warning simple-warning) ()) (found in one of KMP's usenet posts: http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/c55278c8da409bda/bea4d994f8c2e0bb?lnk=gst&q=style-warning#bea4d994f8c2e0bb) but it works inconsistently in SBCL and CCL. Thank you, Vladimir
![](https://secure.gravatar.com/avatar/90ff9b7df6973eae49d3d4911e2eda0c.jpg?s=120&d=mm&r=g)
Vladimir Sedach <vsedach@gmail.com> writes:
Is there a portable way to create a simple-style-warning condition that when signaled with WARN won't cause SLIME to claim that file compilation failed, that works for all/most CL implementations?
I'm trying to use this:
(define-condition simple-style-warning (style-warning simple-warning) ())
(found in one of KMP's usenet posts: http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/c55278c8da409bda/bea4d994f8c2e0bb?lnk=gst&q=style-warning#bea4d994f8c2e0bb)
but it works inconsistently in SBCL and CCL. Slime claims that compilation is failed when the third value, failure-p, of COMPILE-FILE is T. And it's specified to return T whenever "error or warning (other than style-warning)" were signalled.
-- With Best Regards, Stas.
![](https://secure.gravatar.com/avatar/9c0ede9a94a934a670c96a955881f439.jpg?s=120&d=mm&r=g)
On Thu, 20 Jan 2011 23:47:55 -0500, Vladimir Sedach said:
Is there a portable way to create a simple-style-warning condition that when signaled with WARN won't cause SLIME to claim that file compilation failed, that works for all/most CL implementations?
I'm trying to use this:
(define-condition simple-style-warning (style-warning simple-warning) ())
(found in one of KMP's usenet posts: http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/c55278c8da409bda/bea4d994f8c2e0bb?lnk=gst&q=style-warning#bea4d994f8c2e0bb)
but it works inconsistently in SBCL and CCL.
In what way inconsistently? I would expect that to work. -- Martin Simmons LispWorks Ltd http://www.lispworks.com/
participants (3)
-
Martin Simmons
-
Stas Boukarev
-
Vladimir Sedach