aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bedra and Stuart Halloway <pair@clojure.com>2010-07-23 11:19:10 -0400
committerAaron Bedra and Stuart Halloway <pair@clojure.com>2010-07-23 11:19:10 -0400
commitdf1b195197e8fe0c64a14335a5ae9854e75feff8 (patch)
treeca505eff843d0335d7e49aecdee52ba03a9a6859
parenta762fda63e8f4f0257bb7d27f5886bd1e75e3054 (diff)
marking deprecations in ns-utils
-rw-r--r--src/main/clojure/clojure/contrib/ns_utils.clj58
1 files changed, 26 insertions, 32 deletions
diff --git a/src/main/clojure/clojure/contrib/ns_utils.clj b/src/main/clojure/clojure/contrib/ns_utils.clj
index ba8c43ce..811c282c 100644
--- a/src/main/clojure/clojure/contrib/ns_utils.clj
+++ b/src/main/clojure/clojure/contrib/ns_utils.clj
@@ -5,43 +5,35 @@
;; using this software in any fashion, you are agreeing to be bound by the
;; terms of this license. You must not remove this notice, or any other,
;; from this software.
-;;
-;; ns-utils
-;;
-;; Namespace Utilities
-;;
-;; 'get-ns' returns the namespace named by a symbol or throws
-;; if the namespace does not exist
-;;
-;; 'ns-vars' returns a sorted seq of symbols naming public vars
-;; in a namespace
-;;
-;; 'print-dir' prints a sorted directory of public vars in a
-;; namespace
-;;
-;; 'print-docs' prints documentation for the public vars in a
-;; namespace
-;;
-;; 'immigrate' Create a public var in this namespace for each
-;; public var in the namespaces named by ns-names.
-;; From James Reeves
-;; Convenience
-;;
-;; 'vars' returns a sorted seq of symbols naming public vars
-;; in a namespace (macro)
-;;
-;; 'dir' prints a sorted directory of public vars in a
-;; namespace (macro)
-;;
-;; 'docs' prints documentation for the public vars in a
-;; namespace (macro)
-;;
+
;; scgilardi (gmail)
;; 23 April 2008
+;; DEPRECATED in 1.2: dir and print-dir. Use dir and dir-fn in
+;; clojure.repl.
+
(ns
^{:author "Stephen C. Gilardi",
- :doc "Namespace utilities"}
+ :doc "Namespace utilities
+
+ get-ns returns the namespace named by a symbol or throws
+ if the namespace does not exist
+
+ ns-vars returns a sorted seq of symbols naming public vars
+ in a namespace
+
+ print-docs prints documentation for the public vars in a
+ namespace
+
+ immigrate Create a public var in this namespace for each
+ public var in the namespaces named by ns-names.
+ From James Reeves
+
+ vars returns a sorted seq of symbols naming public vars
+ in a namespace (macro)
+
+ docs prints documentation for the public vars in a
+ namespace (macro)"}
clojure.contrib.ns-utils
(:use clojure.contrib.except))
@@ -63,6 +55,7 @@
(defn print-dir
"Prints a sorted directory of public vars in a namespace"
+ {:deprecated "1.2"}
[ns]
(doseq [item (ns-vars ns)]
(println item)))
@@ -83,6 +76,7 @@
(defmacro dir
"Prints a sorted directory of public vars in a namespace"
+ {:deprecated "1.2"}
[nsname]
`(print-dir (get-ns '~nsname)))