Details
-
Type:
Defect
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: Release 1.5
-
Fix Version/s: Release 1.6
-
Component/s: None
-
Labels:None
-
Patch:Code
-
Approval:Vetted
Description
clojure.repl/source is broken in Clojure 1.5.0 when *read-eval* is bound to :unknown, since source-fn reads without binding.
Reproduce:
- Either set in Leiningen or eval at REPL:
:jvm-opts ["-Dclojure.read.eval=unknown"]
(alter-var-root #'*read-eval* (constantly :unknown))
- (use 'clojure.repl)
- (source drop-last)
Expected:
Source of drop-last.
Actual:
RuntimeException Reading disallowed - *read-eval* bound to :unknown
The attached patch just binds *read-eval* to true inside source-fn.