Re: Help organizing code and namespaces

2011-06-19 Thread Benjamin Teuber
Hi, this should be what you need: http://stackoverflow.com/questions/4690758/splitting-a-clojure-namespace-over-multiple-files On Jun 18, 3:52 pm, Matt Mitchell goodie...@gmail.com wrote: Hi, I have 3 namespaces, each with functions that relate to the name of the ns: core -- contains config

User.clj and set!

2011-06-19 Thread Andreas Liljeqvist
I am trying to set! *printlength* to something not insanity inducing. Problem is that user.clj doesn't support set! I found some old discussion about adding post-repl init, did anything come of this? There exists :repl-init in Lein, but it only takes a symbol. I would like to have one config for

#= reader macro

2011-06-19 Thread Ralph
I just discovered the #= reader macro from a post on Stackoverflow and it solves a problem. How likely is this reader macro to become an official (documented) part of the language? How about deprecated or changed behavior? I am trying to use Stuart Sierra's do-template inside a defprotocol to

Re: User.clj and set!

2011-06-19 Thread David Powell
On Sun, Jun 19, 2011 at 11:58 AM, Andreas Liljeqvist bon...@gmail.comwrote: I am trying to set! *printlength* to something not insanity inducing. Problem is that user.clj doesn't support set! Vars normally only have a global root binding. When you use (binding [varname newvalue]) the var gets

Re: Allow Data Structure to Be Called as Function

2011-06-19 Thread Ken Wesson
On Sat, Jun 18, 2011 at 10:47 AM, David Nolen dnolen.li...@gmail.com wrote: On Sat, Jun 18, 2011 at 4:44 AM, Sam Aaron samaa...@gmail.com wrote: Is it possible to use this approach to create a callable record which can take a variable number of arguments? I can't get the following to work:

clojure-test-mode

2011-06-19 Thread Gregg Reynolds
Hi folks, I somehow managed to get clojure-test-mode working, so I can execute C-c C-, from a test file and see the test results in the slime repl. However, in the mini-buffer I get the following message: error in process filter: Invalid read syntax: # Any idea what that means? It doesn't

Re: Why should I use emacs instead of netbeans?

2011-06-19 Thread James Keats
On Jun 18, 4:08 pm, Stefan Kamphausen ska2...@googlemail.com wrote: Hi, these modern IDEs really do a tremendous job at organizing projects and providing additional information at programming time. It's just, their text-editor components suck. If you are a Java developer, it's probably

Are the docs on clojure.org always kept up to date?

2011-06-19 Thread James Keats
Hi all, Clojure seems to be a language in a bit of flux (eg, defstruct vs defrecord), is there a canonical set of docs that keeps all of this up- to-date? are the docs on clojure.org always kept up to date? is there a place to track succinct notes on language evolution, conventions and community

Re: Screencast: Clojure + Emacs + slime + swank + cake + Overtone

2011-06-19 Thread looselytyped
Agreed. This is a very informative screencast. Thanks Sam. Raju On Jun 17, 3:21 pm, John Toohey j...@parspro.com wrote: Excellent screencast. On Thu, Jun 16, 2011 at 11:16, Sam Aaron samaa...@gmail.com wrote: Hi there, I just finished making a screencast primarily for new

Clojure and swedish characters on windows...

2011-06-19 Thread Andreas Liljeqvist
M-x: clojure-jack-in usersä Debugger entered: nil (condition-case error (slime-net-read) (error (debug) (slime-net-close process t) (error net-read error: %S error))) slime-net-read-or-lose(#process SLIME Lisp) slime-process-available-input(#process SLIME Lisp) slime-net-filter(#process

Re: User.clj and set!

2011-06-19 Thread Andreas Liljeqvist
Thanks for the answer. Would there be any problems associated with changing the root bindings? 2011/6/19 David Powell djpow...@djpowell.net On Sun, Jun 19, 2011 at 11:58 AM, Andreas Liljeqvist bon...@gmail.comwrote: I am trying to set! *printlength* to something not insanity inducing.

Re: Clojure and swedish characters on windows...

2011-06-19 Thread Phil Hagelberg
Andreas Liljeqvist bon...@gmail.com writes: M-x: clojure-jack-in usersä Debugger entered: nil   (condition-case error (slime-net-read) (error (debug) (slime-net-close process t) (error net-read error: %S error)))   slime-net-read-or-lose(#process SLIME Lisp)  

Re: Clojure and swedish characters on windows...

2011-06-19 Thread Andreas Liljeqvist
Thank you Phil, that fixed it. 2011/6/19 Phil Hagelberg p...@hagelb.org Andreas Liljeqvist bon...@gmail.com writes: M-x: clojure-jack-in usersä Debugger entered: nil (condition-case error (slime-net-read) (error (debug) (slime-net-close process t) (error net-read error: %S

Trying to set up clojure... and failing

2011-06-19 Thread Peter Tabatt
Hey guys, I downloaded the clojure file from github, unzipped it and can't go any further. Any ideas? I ran (the command in the Quick start section) this: Peter-Tabatts-MacBook-Pro:clojure ptabatt$ unzip richhickey-clojure- clr-clojure-1.3.0-alpha7-8-g84e3baa.zip Archive:

Follow-up: Java dependency injection in Clojure

2011-06-19 Thread Luc Prefontaine
Hi all, just a short follow up about Boing. Version 1.2 is out, there's a new Java API in this version. You can define beans in Clojure, load the definitions as a resource and instantiate them from Java. The Wiki details how to use it. This release should be the last release for a few months

Re: #= reader macro

2011-06-19 Thread Anthony Grimes
Check out Seesaw http://github.com/daveray/seesaw. It's a Clojure Swing wrapper that really cuts back on boilerplate, and will probably serve you better than rolling your own making-swing-manageable macros. Happy hacking! -- You received this message because you are subscribed to the Google

clojure-jack-in slime-highlight-edits

2011-06-19 Thread Fred Concklin
I'm using clojure-jack-in with slime-highlight-edits in my slime config (.emacs). The problem is that the after slime is bootstrapped by jack-in the highlights show up in every .clj file I'm editing, regardless of whether or not it is in the project with the slime-connection.

Re: clojure-jack-in slime-highlight-edits

2011-06-19 Thread Phil Hagelberg
Fred Concklin fredconck...@gmail.com writes: Clearly the solution is to turn off slime-highlight-edits. Although why is slime bootstrapped on every jack-in? Future versions will try to detect if it's already been bootstrapped and skip that step if so. But this functionality is still new, so I

Re: Trying to set up clojure... and failing

2011-06-19 Thread Sean Corfield
On Sun, Jun 19, 2011 at 5:18 PM, Peter Tabatt ptab...@gmail.com wrote: Hey guys, I downloaded the clojure file from github, unzipped it and can't go any further. Any ideas? I strongly recommend starting with Leiningen instead of the raw Clojure JAR files.

Re: clojure-jack-in slime-highlight-edits

2011-06-19 Thread Fred Concklin
Phil Hagelberg p...@hagelb.org writes: Fred Concklin fredconck...@gmail.com writes: Clearly the solution is to turn off slime-highlight-edits. Although why is slime bootstrapped on every jack-in? Future versions will try to detect if it's already been bootstrapped and skip that step if so.