arichiardi / replumb

ClojureScript plumbing for your self-hosted REPLs.
http://clojurescript.io
Eclipse Public License 1.0
210 stars 16 forks source link

Load form should respect the :load-fn! protocol #161

Closed arichiardi closed 8 years ago

arichiardi commented 8 years ago

At the moment, "(load-file \"foo/load.clj\")" always loads the file if present in the source path, even if a :load-fn! that returns nil is attached to the read-eval-call options.

The relevant code, that does not query :load-fn! at all is here

arichiardi commented 8 years ago

Just temporarily, the link to the diff is here.

arichiardi commented 8 years ago

This one is tricky, because :load-fn is not used at all by the ClojureScript when it comes to load-file so it is an expected behaviour that it reads when it finds a file, I will change the test and maybe specify it in the README somewhere