clojure 1.5.1, emacs/nrepl and clojure.repl

119 views
Skip to first unread message

Colin Yates

unread,
Jul 8, 2013, 11:43:40 AM7/8/13
to clo...@googlegroups.com
Hi all,

If using clojure 1.4.0 then when I start nrepl (CcMj) then I the clojure.repl namespace is automatically 'used.  If I upgrade to Clojure 1.5.1 then it doesn't.  I can still (use 'clojure.repl) but is this a bug?

I can't believe I would be the first to spot this but there I couldn't find any useful google results other than some obscure reference to 1.5's increased strictness in enforcing correctness.

Alternatively, in the vein of just getting things done, can I do some emacs fu to automatically load clojure.repl?  Silly me - of course I can - this is emacs :).  No idea what that fu would be though...  Any hints?

Thanks a bunch.

Col

Neale Swinnerton

unread,
Jul 8, 2013, 11:49:53 AM7/8/13
to clo...@googlegroups.com
Hi Col,

On Mon, Jul 8, 2013 at 4:43 PM, Colin Yates <colin...@gmail.com> wrote:
Alternatively, in the vein of just getting things done, can I do some emacs fu to automatically load clojure.repl?  Silly me - of course I can - this is emacs :).  No idea what that fu would be though...  Any hints?


Since nrepl calls lein to establish the repl session, You can add the necessary require as an injection in ${HOME}/.lein/profiles.clj

e.g. I have this:

:injections [(require 'clojure.repl)]

I don't know if this is the right way™, but it works for me...

Tim Visher

unread,
Jul 8, 2013, 12:24:45 PM7/8/13
to clo...@googlegroups.com
On Mon, Jul 8, 2013 at 11:43 AM, Colin Yates <colin...@gmail.com> wrote:
> If using clojure 1.4.0 then when I start nrepl (CcMj) then I the
> clojure.repl namespace is automatically 'used. If I upgrade to Clojure
> 1.5.1 then it doesn't. I can still (use 'clojure.repl) but is this a bug?
>
> I can't believe I would be the first to spot this but there I couldn't find
> any useful google results other than some obscure reference to 1.5's
> increased strictness in enforcing correctness.

I believe this is being tracked and discussed here:
https://github.com/kingtim/nrepl.el/issues/292

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail

Colin Yates

unread,
Jul 8, 2013, 1:35:13 PM7/8/13
to clo...@googlegroups.com
Ah yes - nice find.



--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/vyO60o58RPE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Colin Yates

unread,
Jul 8, 2013, 1:53:01 PM7/8/13
to clo...@googlegroups.com
That works a treat - thanks.


--
Reply all
Reply to author
Forward
0 new messages