X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcondition.lisp;h=2169ccdb922e02b86f8762e60c879e246d13d616;hb=8eee0d3a30bf39d9f201acff28c92059fe6c3e4e;hp=ace650cf790205e1fdca02d0c96ad200f9c9392b;hpb=ee8c58af0f59d9e5b4307efcbf944f88b850343b;p=sbcl.git diff --git a/src/code/condition.lisp b/src/code/condition.lisp index ace650c..2169ccd 100644 --- a/src/code/condition.lisp +++ b/src/code/condition.lisp @@ -648,6 +648,11 @@ "end of file on ~S" (stream-error-stream condition))))) +(define-condition closed-stream-error (stream-error) () + (:report + (lambda (condition stream) + (format stream "~S is closed" (stream-error-stream condition))))) + (define-condition file-error (error) ((pathname :reader file-error-pathname :initarg :pathname)) (:report @@ -903,6 +908,9 @@ (define-condition simple-reference-error (reference-condition simple-error) ()) +(define-condition simple-reference-warning (reference-condition simple-warning) + ()) + (define-condition duplicate-definition (reference-condition warning) ((name :initarg :name :reader duplicate-definition-name)) (:report (lambda (c s) @@ -1177,6 +1185,14 @@ SB-EXT:PACKAGE-LOCKED-ERROR-SYMBOL.")) (simple-condition-format-arguments condition) (reader-impossible-number-error-error condition)))))) +(define-condition standard-readtable-modified-error (reference-condition error) + ((operation :initarg :operation :reader standard-readtable-modified-operation)) + (:report (lambda (condition stream) + (format stream "~S would modify the standard readtable." + (standard-readtable-modified-operation condition)))) + (:default-initargs :references `((:ansi-cl :section (2 1 1 2)) + (:ansi-cl :glossary "standard readtable")))) + (define-condition timeout (serious-condition) ((seconds :initarg :seconds :initform nil :reader timeout-seconds)) (:report (lambda (condition stream) @@ -1276,8 +1292,9 @@ the values returned by the form as a list. No associated restarts.")) ;;; A knob for muffling warnings, mostly for use while loading files. (defvar *muffled-warnings* 'uninteresting-redefinition - "A type that ought to specify a subtype of WARNING. Whenever a warning -is signaled, if the warning if of this type, it will be muffled.") + "A type that ought to specify a subtype of WARNING. Whenever a +warning is signaled, if the warning if of this type and is not +handled by any other handler, it will be muffled.") ;;; Various STYLE-WARNING signaled in the system. ;; For the moment, we're only getting into the details for function @@ -1398,11 +1415,10 @@ is signaled, if the warning if of this type, it will be muffled.") ;; clearly uninteresting, and we'll say arbitrarily that ;; replacing an interpreted function with an interpreted ;; function is uninteresting, too, but leave out the - ;; compiled-to-interpreted and interpreted-to-compiled cases. - (when (or (and (typep old-fdefn - '(or #!+sb-eval sb!eval:interpreted-function)) - (typep new-fdefn - '(or #!+sb-eval sb!eval:interpreted-function))) + ;; compiled-to-interpreted case. + (when (or (typep + old-fdefn + '(or #!+sb-eval sb!eval:interpreted-function)) (and (typep old-fdefn '(and compiled-function (not funcallable-instance)))