Drop unnecessary clojure.core
We're in a clean user ns so the qualification is unnecessary here.
This commit is contained in:
parent
238b526cf2
commit
f5ded81baf
@ -382,14 +382,14 @@ function! s:spawning_eval(classpath, expr, ns) abort
|
||||
let java_cmd = exists('$JAVA_CMD') ? $JAVA_CMD : 'java'
|
||||
let command = java_cmd.' -cp '.shellescape(a:classpath).' clojure.main -e ' .
|
||||
\ shellescape(
|
||||
\ '(clojure.core/binding [*out* (java.io.FileWriter. '.s:str(s:oneoff_out).')' .
|
||||
\ ' *err* (java.io.FileWriter. '.s:str(s:oneoff_err).')]' .
|
||||
\ '(binding [*out* (java.io.FileWriter. '.s:str(s:oneoff_out).')' .
|
||||
\ ' *err* (java.io.FileWriter. '.s:str(s:oneoff_err).')]' .
|
||||
\ ' (try' .
|
||||
\ ' (clojure.core/require ''clojure.repl) '.ns.'(clojure.core/spit '.s:str(s:oneoff_pr).' (clojure.core/pr-str (clojure.core/eval (clojure.core/read-string (clojure.core/slurp '.s:str(s:oneoff_in).')))))' .
|
||||
\ ' (require ''clojure.repl) '.ns.'(spit '.s:str(s:oneoff_pr).' (pr-str (eval (read-string (slurp '.s:str(s:oneoff_in).')))))' .
|
||||
\ ' (catch Exception e' .
|
||||
\ ' (clojure.core/spit *err* (.toString e))' .
|
||||
\ ' (clojure.core/spit '.s:str(s:oneoff_ex).' (clojure.core/class e))' .
|
||||
\ ' (clojure.core/spit '.s:str(s:oneoff_stk).' (clojure.core/apply clojure.core/str (clojure.core/interpose "\n" (.getStackTrace e))))))' .
|
||||
\ ' (spit *err* (.toString e))' .
|
||||
\ ' (spit '.s:str(s:oneoff_ex).' (class e))' .
|
||||
\ ' (spit '.s:str(s:oneoff_stk).' (apply str (interpose "\n" (.getStackTrace e))))))' .
|
||||
\ ' nil)')
|
||||
let captured = system(command)
|
||||
let result = {}
|
||||
|
Loading…
Reference in New Issue
Block a user