Re: clojure-swank and macro expansion

2009-04-17 Thread Paul Drummond
Excellent! Many thanks to you guys and Tom Faulhaber (the author of pprint) - this feature has already helped me so much with debugging my macro. 2009/4/18 Jeffrey Chu : > > It's supposed to - but I was too lazy to write a walker. Fortunately > there's a contrib for it now and I've added that fe

Re: clojure-swank and macro expansion

2009-04-17 Thread Jeffrey Chu
It's supposed to - but I was too lazy to write a walker. Fortunately there's a contrib for it now and I've added that feature. Again, this needs contrib so if it's not there it'll fallback on plain old macroexpand. - Jeff On Apr 17, 2:22 pm, Paul Drummond wrote: > Thanks guys - it's great that

Re: clojure-swank and macro expansion

2009-04-17 Thread David Nolen
This is the standard behavior. Just place the cursor over any other unexpanded forms in the expansion buffer and run the command again. It will expand again in place. On Fri, Apr 17, 2009 at 5:22 PM, Paul Drummond wrote: > > Thanks guys - it's great that this is in clojure-swank now as well! I >

Re: clojure-swank and macro expansion

2009-04-17 Thread Paul Drummond
Thanks guys - it's great that this is in clojure-swank now as well! I simply updated and it works - no code changes required :) It looks like slime-macroexpand-all doesn't do what I expected it to do though. Is it just the same as the clojure macroexpand function? I was hoping it would do a "re

Re: clojure-swank and macro expansion

2009-04-17 Thread Jeffrey Chu
Thanks for the tip. I've added it to swank-clojure (only if you have clojure.contrib installed though, so don't forget to have that around). - Jeff On Apr 17, 12:14 pm, David Nolen wrote: > If you have the latest version of clojure.contrib you can do the following: > Modify the namespace declar

Re: clojure-swank and macro expansion

2009-04-17 Thread David Nolen
If you have the latest version of clojure.contrib you can do the following: Modify the namespace declaration in swank-clojure/swank/commands/basic.clj to look like the following: (ns swank.commands.basic (:refer-clojure :exclude [load-file]) (:use (swank util commands core) (swank.util

clojure-swank and macro expansion

2009-04-17 Thread Paul Drummond
Up until now I have made do with a simple clojure repl in Emacs but as I am playing around with macros I feel it's time to test drive clojure-swank and it's fancy macro expansion features! I have installed clojure-swank following the instructions on the wiki and the installation seems to have wor