From: Christophe Rhodes Date: Fri, 18 Feb 2005 08:22:23 +0000 (+0000) Subject: 0.8.19.32: X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=ca267caa3bdb897a93a1e69ae7300ba3ba5d391f;p=sbcl.git 0.8.19.32: In response to a question on #lisp IRC... ... make the style-warning for #S(FOO #\A 1) include a reference to the relevant section in CLtS. --- diff --git a/package-data-list.lisp-expr b/package-data-list.lisp-expr index 44d8971..e1a06f0 100644 --- a/package-data-list.lisp-expr +++ b/package-data-list.lisp-expr @@ -881,6 +881,7 @@ retained, possibly temporariliy, because it might be used internally." "TYPE-WARNING" "LOCAL-ARGUMENT-MISMATCH" "FORMAT-ARGS-MISMATCH" "FORMAT-TOO-FEW-ARGS-WARNING" "FORMAT-TOO-MANY-ARGS-WARNING" "EXTENSION-FAILURE" + "STRUCTURE-INITARG-NOT-KEYWORD" "NAME-CONFLICT" "NAME-CONFLICT-FUNCTION" "NAME-CONFLICT-DATUM" "NAME-CONFLICT-SYMBOLS" diff --git a/src/code/condition.lisp b/src/code/condition.lisp index a29c02b..e281b2a 100644 --- a/src/code/condition.lisp +++ b/src/code/condition.lisp @@ -913,6 +913,11 @@ (define-condition extension-failure (reference-condition simple-error) ()) +(define-condition structure-initarg-not-keyword + (reference-condition simple-style-warning) + () + (:default-initargs :references (list '(:ansi-cl :section (2 4 8 13))))) + #!+sb-package-locks (progn diff --git a/src/code/sharpm.lisp b/src/code/sharpm.lisp index 820d5f4..f091b65 100644 --- a/src/code/sharpm.lisp +++ b/src/code/sharpm.lisp @@ -159,9 +159,12 @@ designator: ~S." slot-name)) (when (not (keywordp slot-name)) - (style-warn "in #S ~S, the use of non-keywords ~ - as slot specifiers is deprecated: ~S." - (car body) slot-name))) + (warn 'structure-initarg-not-keyword + :format-control + "in #S ~S, the use of non-keywords ~ + as slot specifiers is deprecated: ~S." + :format-arguments + (list (car body) slot-name)))) collect (intern (string (car tail)) *keyword-package*) collect (cadr tail))))))) diff --git a/version.lisp-expr b/version.lisp-expr index 92a9dba..8ad368f 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.8.19.31" +"0.8.19.32"