0.8.19.32:
authorChristophe Rhodes <csr21@cam.ac.uk>
Fri, 18 Feb 2005 08:22:23 +0000 (08:22 +0000)
committerChristophe Rhodes <csr21@cam.ac.uk>
Fri, 18 Feb 2005 08:22:23 +0000 (08:22 +0000)
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.

package-data-list.lisp-expr
src/code/condition.lisp
src/code/sharpm.lisp
version.lisp-expr

index 44d8971..e1a06f0 100644 (file)
@@ -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"
index a29c02b..e281b2a 100644 (file)
 (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
 
index 820d5f4..f091b65 100644 (file)
                               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)))))))
 \f
index 92a9dba..8ad368f 100644 (file)
@@ -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"