aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bedra and Stuart Halloway <pair@clojure.com>2010-07-23 11:29:59 -0400
committerAaron Bedra and Stuart Halloway <pair@clojure.com>2010-07-23 11:29:59 -0400
commitfdda2d2c1cb046203470eaed264810ddaf895bcf (patch)
tree1f8eebb4354aa535011b745d86afdba6e797cbac
parente1c5056f0bea0aadebf6b2384d66a36c034d3251 (diff)
marking deprecations in repl-utils
-rw-r--r--src/main/clojure/clojure/contrib/repl_utils.clj6
1 files changed, 6 insertions, 0 deletions
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 %))