Skip to content

Commit

Permalink
Use sb!ext:print-symbol-with-prefix in implicit-generic-function-warn…
Browse files Browse the repository at this point in the history
…ing.

 and export this useful function from sb-exr.

 Slight mangling by Paul Khuong.
  • Loading branch information
attila-lendvai authored and pkhuong committed Jun 28, 2013
1 parent 3e3cd66 commit c7313d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ changes relative to sbcl-1.1.8:
* enhancement: disassemble now annotates some previously missing static
functions, like LENGTH.
* enhancement: clean.sh now also cleans doc/internals.
* enhancement: SB-EXT:PRINT-SYMBOL-WITH-PREFIX can be used within ~// to
print a symbol with a package prefix.
* optimization: calls to static functions on x86-64 use less instructions.
* optimization: compute encode-universal-time at compile time when possible.
* optimization: when referencing internal functions as #'x, don't go through
Expand Down
1 change: 1 addition & 0 deletions package-data-list.lisp-expr
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ like *STACK-TOP-HINT* and unsupported stuff like *TRACED-FUN-LIST*."
"DELETE-DIRECTORY"
"SET-SBCL-SOURCE-LOCATION"
"*DISASSEMBLE-ANNOTATE*"
"PRINT-SYMBOL-WITH-PREFIX"

;; stepping interface
"STEP-CONDITION" "STEP-FORM-CONDITION" "STEP-FINISHED-CONDITION"
Expand Down
8 changes: 4 additions & 4 deletions src/code/condition.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@
(:report
(lambda (condition stream)
(format stream
"The function ~/sb-impl::print-symbol-with-prefix/ is undefined."
"The function ~/sb!ext:print-symbol-with-prefix/ is undefined."
(cell-error-name condition)))))

(define-condition special-form-function (undefined-function) ()
Expand Down Expand Up @@ -977,9 +977,9 @@
((name :initarg :name :reader implicit-generic-function-name))
(:report
(lambda (condition stream)
(let ((*package* (find-package :keyword)))
(format stream "~@<Implicitly creating new generic function ~S.~:@>"
(implicit-generic-function-name condition))))))
(format stream "~@<Implicitly creating new generic function ~
~/sb-impl::print-symbol-with-prefix/.~:@>"
(implicit-generic-function-name condition)))))

(define-condition extension-failure (reference-condition simple-error)
())
Expand Down

0 comments on commit c7313d0

Please sign in to comment.