From fdda2d2c1cb046203470eaed264810ddaf895bcf Mon Sep 17 00:00:00 2001 From: Aaron Bedra and Stuart Halloway Date: Fri, 23 Jul 2010 11:29:59 -0400 Subject: marking deprecations in repl-utils --- src/main/clojure/clojure/contrib/repl_utils.clj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/clojure/clojure/contrib/repl_utils.clj b/src/main/clojure/clojure/contrib/repl_utils.clj index 01c7a1d4..fdb321a5 100644 --- a/src/main/clojure/clojure/contrib/repl_utils.clj +++ b/src/main/clojure/clojure/contrib/repl_utils.clj @@ -8,6 +8,9 @@ ; Utilities meant to be used interactively at the REPL +;; Deprecated in 1.2: source, get-source, and apropos. These are +;; available in clojure.repl as source, source-fn, and apropos, respectively. + (ns ^{:author "Chris Houser, Christophe Grand, Stephen Gilardi, Michel Salim", :doc "Utilities meant to be used interactively at the REPL"} @@ -102,6 +105,7 @@ convenient. Example: (get-source 'filter)" + {:deprecated "1.2"} [x] (when-let [v (resolve x)] (when-let [filepath (:file (meta v))] @@ -122,6 +126,7 @@ namespace for which the .clj is in the classpath. Example: (source filter)" + {:deprecated "1.2"} [n] `(println (or (get-source '~n) (str "Source not found")))) @@ -129,6 +134,7 @@ "Given a regular expression or stringable thing, return a seq of all definitions in all currently-loaded namespaces that match the str-or-pattern." + {:deprecated "1.2"} [str-or-pattern] (let [matches? (if (instance? java.util.regex.Pattern str-or-pattern) #(re-find str-or-pattern (str %)) -- cgit v1.2.3-18-g5258