Re: Clojure/SLIME/Emacs questions

2010-02-12 Thread Ramakrishnan Muthukrishnan
On Sat, Feb 13, 2010 at 5:48 AM, Steven E. Harris wrote: > Phil Hagelberg writes: > >> Upstream slime is not compatible with swank-clojure > > I find this not to be true at present, the stilted SLIME/Swank > connection problem¹ and disabling autodoc mode notwithstanding. Yes, I too use slime ups

Re: Clojure/SLIME/Emacs questions

2010-02-12 Thread Steven E. Harris
Phil Hagelberg writes: > Upstream slime is not compatible with swank-clojure I find this not to be true at present, the stilted SLIME/Swank connection problem¹ and disabling autodoc mode notwithstanding. Footnotes: ¹ http://thread.gmane.org/gmane.comp.java.clojure.user/24894/focus=24956 --

Re: Clojure/SLIME/Emacs questions

2010-02-11 Thread Phil Hagelberg
On Thu, Feb 11, 2010 at 1:20 PM, Jeff Kowalczyk wrote: > The installed packages: > > clojure-mode-1.6 > slime-20091016 > slime-repl-20091016 > swank-clojure-1.1.0 > > include snapshots of slime and slime/contrib/slime-repl.el. Will these > be merged with upstream slime soon? I spoke with the slim

Re: Clojure/SLIME/Emacs questions

2010-02-11 Thread Jeff Kowalczyk
On Jan 1, 1:45 pm, Phil Hagelberg wrote: > You can get this to work, but as you can see it's very manual and > error-prone. The basicslimeREPL is working using automated > installation from ELPA. I am using the ELPA installation method, it's working well via the automatic install. Thank you for p

Re: Clojure/SLIME/Emacs questions

2010-01-02 Thread Phil Hagelberg
Rob Wolfe writes: >> installation from ELPA, and William Douglas is working on adding fuzzy >> completion to that. It's highly recommended that you follow this > > I will, if it will work. > >> approach rather than copying and pasting several pages of one-off >> configuration. For instance, addin

Re: Clojure/SLIME/Emacs questions

2010-01-02 Thread Rob Wolfe
Phil Hagelberg writes: > Rob Wolfe writes: > >> Stefan Tilkov writes: >> >>> Two quick Emacs/Clojure questions I can't seem to find the answer to: >>> >>> - In his screencasts, Sean Devlin moves the mouse over an item in his >>> REPL history and it becomes highlighted (and he can paste it to th

SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean (was: Clojure/SLIME/Emacs questions)

2010-01-01 Thread Steven E. Harris
"Steven E. Harris" writes: > My next step will be to instrument the Swank side to see when > `connection-info' is being called. I found the problem: swank.util.sys/get-pid. It looks like the JMX call to get the PID hangs. If I visit the *inferior-lisp* buffer's REPL and evaluate the following f

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Phil Hagelberg
Rob Wolfe writes: > Stefan Tilkov writes: > >> Two quick Emacs/Clojure questions I can't seem to find the answer to: >> >> - In his screencasts, Sean Devlin moves the mouse over an item in his >> REPL history and it becomes highlighted (and he can paste it to the >> current prompt with one click

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Steven E. Harris
"Steven E. Harris" writes: > This is the only content in the *slime-events* buffer while I'm waiting > for the connection to complete: > > ,[ *slime-events* buffer ] > | (:emacs-rex > | (swank:connection-info) > | "COMMON-LISP-USER" t 1) > ` I also confirmed that `slime-set-connection-

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Steven E. Harris
Rob Wolfe writes: > So how do you exactly start SLIME for Clojure? I've tried both `C-u - M-x slime RET clojure' and `run-clojure', which both amount to the same thing eventually > These settings: [...] > should cause automatic start of *inferior-lisp* and *slime-repl clojure* > after typing

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Rob Wolfe
"Steven E. Harris" writes: > Rob Wolfe writes: > >> I did it like this (I assume that clojure-mode.el has been installed): > > Thanks, Rob. I followed your instructions after not being able to get > Clojure to cooperate with my normal Swank/SLIME installation, and it > works, but only to a point

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Steven E. Harris
"Steven E. Harris" writes: > This morning, doing so makes things work much better. Still I see this in the *inferior-lisp* buffer when starting slime: , | (require 'swank.swank) | | (swank.swank/ignore-protocol-version "2009-12-23") | | (swank.swank/start-server "c:/DOCUME~1/seh/LOCALS~1/

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Steven E. Harris
Stefan Kamphausen writes: > you may want to read the thread > http://groups.google.com/group/clojure/browse_frm/thread/3e5f416e3f2a1884/337057edae5dcdc3 I had read that thread /twice/ before, as well as the thread on the SLIME mailing list, but I had neglected to try disabling autodoc-mode. This

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Konrad Hinsen
On 01.01.2010, at 17:29, Stefan Kamphausen wrote: > I had some errors before compiling and putting the resulting JAR on > the CP. But I'm not much of a Java-hero. What is your classpath? I > have swank-clojure/target/swank-clojure-1.0-SNAPSHOT.jar on it. I always work with the latest Clojure (

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Stefan Kamphausen
Hi, On Jan 1, 4:35 pm, Konrad Hinsen wrote: > On 01.01.2010, at 12:30, Stefan Kamphausen wrote: > > The only part that feels tricky is compiling swank for which I needed > > a Maven setup, IIRC. > > I just run swank from source code, uncompiled. No Maven, no worry :-) I had some errors before co

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Konrad Hinsen
On 01.01.2010, at 12:30, Stefan Kamphausen wrote: > FWIW I have never touched ELPA but got a setup with SLIME from CVS > plus SBCL and Clojure. A rudimentary description can be found at > http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup > > The only part that feels tricky is compiling swank

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Edmund Jackson
and FWIW I got the whole thing going without ELPA by using the instructions here: http://learnclojure.blogspot.com/2009/11/installing-clojure-on-ubuntu-910-karmic.html but on OSX. On 1 Jan 2010, at 11:30, Stefan Kamphausen wrote: > FWIW I have never touched ELPA but got a setup with SLIME fro

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Stefan Kamphausen
FWIW I have never touched ELPA but got a setup with SLIME from CVS plus SBCL and Clojure. A rudimentary description can be found at http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup The only part that feels tricky is compiling swank for which I needed a Maven setup, IIRC. Regards, Stefan -

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Steve Purcell
Indeed -- that works nicely. I tried going back to a completely non-ELPA-ized setup, but it was too painful; the trick was installing technomancy's github repo of slime *in addition* to the ELPA packages, which all depend on each other. -Steve On 31 Dec 2009, at 16:44, william douglas wrote:

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Stefan Kamphausen
Hi, do you use a rather recent checkout of SLIME? If so, you may want to read the thread http://groups.google.com/group/clojure/browse_frm/thread/3e5f416e3f2a1884/337057edae5dcdc3 Can't say whether that's related to your problem, though. Cheers, Stefan -- You received this message because yo

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Steven E. Harris
Rob Wolfe writes: > I did it like this (I assume that clojure-mode.el has been installed): Thanks, Rob. I followed your instructions after not being able to get Clojure to cooperate with my normal Swank/SLIME installation, and it works, but only to a point: The SLIME REPL buffer (invoked via the

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Stefan Tilkov
Thanks for the quick response to everyone. I downloaded slime-fuzzy.el from here: http://elder-gods.org/~larry/repos/slime-tracker/contrib/slime-fuzzy.el , put it into ~/.emacs.d/misc and then added this to my ~/.emacs: (setq load-path (cons "~/.emacs.d/misc" load-path)) (eval

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Rob Wolfe
Stefan Tilkov writes: > Two quick Emacs/Clojure questions I can't seem to find the answer to: > > - In his screencasts, Sean Devlin moves the mouse over an item in his > REPL history and it becomes highlighted (and he can paste it to the > current prompt with one click) > - Also in his screencast

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread william douglas
> Well, it clearly works for Lau, but then he says in one of the screencasts > that he's using an old version of Slime; if you install technomancy's slime > package from > ELPA, I believe you don't get all the slime extensions, which > would easily explain why the fuzzy completion doesn't work.

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Stefan Tilkov
On Dec 31, 2009, at 4:39 PM, Sean Devlin wrote: > Stefan, > I run OSX, so I use command-click to bring the item to my REPL. I > imagine a right click would do the job in other platforms. > Thanks Sean, but I am on OS X too – the line simply doesn't get highlighted, so I assumed there must be s

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Sean Devlin
Stefan, I run OSX, so I use command-click to bring the item to my REPL. I imagine a right click would do the job in other platforms. Sean On Dec 31, 6:15 am, Stefan Tilkov wrote: > Two quick Emacs/Clojure questions I can't seem to find the answer to: > > - In his screencasts, Sean Devlin moves

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Joost
On 31 dec, 13:07, Baishampayan Ghose wrote: > > This one is called fuzzy-completion, which for some unknown reasons > doesn't work with SLIME + Clojure. > > It used to work perfectly with Common Lisp. I would appreciate a > solution to this too. Works for me, but you must have slime-fuzzy or slim

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Steve Purcell
Well, it clearly works for Lau, but then he says in one of the screencasts that he's using an old version of Slime; if you install technomancy's slime package from ELPA, I believe you don't get all the slime extensions, which would easily explain why the fuzzy completion doesn't work. I'm using

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Baishampayan Ghose
> - Also in his screencasts, Lau Jensen types something like g-i-v, > then hits some key combination and gets an expansion like > get-integer-value This one is called fuzzy-completion, which for some unknown reasons doesn't work with SLIME + Clojure. It used to work perfectly with Common Lisp. I

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Stefan Tilkov
I probably should have mentioned that I have Emacs/SLIME/Clojure working together nicely already, it's particularly these features that are missing. Stefan On Dec 31, 2009, at 12:15 PM, Stefan Tilkov wrote: > Two quick Emacs/Clojure questions I can't seem to find the answer to: > > - In his sc

Clojure/SLIME/Emacs questions

2009-12-31 Thread Stefan Tilkov
Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something lik