SLIME uses this to display a list of errors and prompt you to continue loading the compiled file or not.
I want to raise style-warnings (for things like uses of deprecated API macros), but don't want them to raise errors in SLIME. The thing is style-warning itself doesn't have slots to hold a format string. Doing something like creating a simple-style-warning class from simple-warning and style-warning doesn't work, but surprisingly neither does this:
Code: Select all
(define-condition ps-style-warning (style-warning)
((format-control :reader format-control :initarg :format-control :initform "Parenscript style warning; someone forgot to say what it is!")
(format-arguments :reader format-arguments :initarg :format-arguments :initform nil))
(:report (lambda (condition stream)
(apply #'format stream (format-control condition) (format-arguments condition)))))
Code: Select all
(warn 'ps-style-warning ...)
So how do I signal non-failure warnings at compile-time?