From b53c9103ef4b6858836ee9a037eea67be89b05f8 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Thu, 20 Aug 2009 16:18:06 -0500 Subject: [PATCH] install deprecation definition-observer as an init-hook --- basis/tools/deprecation/deprecation.factor | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/basis/tools/deprecation/deprecation.factor b/basis/tools/deprecation/deprecation.factor index 397fc8719d..90dba554cb 100644 --- a/basis/tools/deprecation/deprecation.factor +++ b/basis/tools/deprecation/deprecation.factor @@ -1,6 +1,6 @@ ! (c)2009 Joe Groff bsd license USING: accessors arrays assocs compiler.units -debugger io kernel namespaces prettyprint sequences +debugger init io kernel namespaces prettyprint sequences source-files.errors summary tools.crossref tools.crossref.private tools.errors words ; IN: tools.deprecation @@ -67,6 +67,7 @@ M: deprecation-observer definitions-changed [ [ check-deprecations ] each ] [ drop initialize-deprecation-notes ] if ; -\ deprecation-observer add-definition-observer +[ \ deprecation-observer add-definition-observer ] +"tools.deprecation" add-init-hook initialize-deprecation-notes