Skip to content

Commit

Permalink
Don't set *print-level* or *print-length*, because the effects can be…
Browse files Browse the repository at this point in the history
… catastrophic for applications that expect pr to print all of the data.
  • Loading branch information
ivan committed May 18, 2012
1 parent bd3d1d7 commit 7710eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject swingrepl "1.4.0-SNAPSHOT"
(defproject swingrepl "1.4.1-SNAPSHOT"
:source-path "src/clj"
:java-source-path "src/jvm"
:java-fork "true"
Expand Down
6 changes: 1 addition & 5 deletions src/clj/org/dipert/swingrepl/main.clj
Expand Up @@ -12,10 +12,6 @@
clj-version
(apply str (interpose \. (map *clojure-version* [:major :minor :incremental]))))

(defn- set-safe-printing! []
(set! *print-level* 15)
(set! *print-length* 103))

(def ^{:doc "Default REPL options"
:private false}
default-opts
Expand All @@ -24,7 +20,7 @@
:font (Font. "Monospaced" Font/PLAIN 14)
:title (str "Clojure " clj-version " REPL")
:prompt #(print "user=> ")
:init set-safe-printing!
:init #()
:eval eval
:on-close JFrame/DISPOSE_ON_CLOSE})

Expand Down

0 comments on commit 7710eb0

Please sign in to comment.