X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Flate-format.lisp;h=7ed479bec1ad0039239fb271c01271364c76168e;hb=fb76e3acd8b8a53cdadaa65bce1d090d99e004a0;hp=4e262c063b7aee48ca43316155143cb13e52a64c;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/src/code/late-format.lisp b/src/code/late-format.lisp index 4e262c0..7ed479b 100644 --- a/src/code/late-format.lisp +++ b/src/code/late-format.lisp @@ -78,7 +78,11 @@ ((and block (char= char #\;) (format-directive-colonp directive)) (setf semicolon directive)) ((char= char #\>) - (aver block) + (unless block + (error 'format-error + :complaint "~~> without a matching ~~<" + :control-string string + :offset next-directive)) (cond ((format-directive-colonp directive) (unless pprint @@ -233,11 +237,13 @@ :offset ,(cdr arg))) args)) (return `(lambda (stream &optional ,@args &rest args) + (declare (ignorable stream)) ,guts args)))) (let ((*orig-args-available* t) (*only-simple-args* nil)) `(lambda (stream &rest orig-args) + (declare (ignorable stream)) (let ((args orig-args)) ,(expand-control-string control-string) args)))))