a lot of links to other material that
you might find useful: http://bc.tech.coop/blog/081209.html
--
Bill Clementson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group,
g the following to your .emacs startup code is probably the
easiest:
(add-hook 'slime-connected-hook (lambda ()
(require 'clojure-mode)))
--
Bill Clementson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
On Thu, Jan 8, 2009 at 2:13 PM, Bill Clementson wrote:
> On Thu, Jan 8, 2009 at 11:57 AM, Zak Wilson wrote:
>>
>> Everything is fully up to date.
>>
>> The test works. Setting the ns with (ns test) works, but if I use a
>> more complex ns form like (ns test
On Thu, Jan 8, 2009 at 11:57 AM, Zak Wilson wrote:
>
> Everything is fully up to date.
>
> The test works. Setting the ns with (ns test) works, but if I use a
> more complex ns form like (ns test (:use clojure.xml)), it fails to
> set the ns.
>
> As a workaround, (in-ns test) after the ns definit
On Thu, Jan 8, 2009 at 2:01 AM, Zak Wilson wrote:
>
> Thanks for your help with this problem, Bill.
>
> The function you provided causes slime-repl-set-package to suggest the
> correct namespace, which is convenient. It doesn't appear to have any
> effect on my problem though.
The slime-find-buf
lojure.core/\\)?ns\\>[ \t']*"
"\\([^)]+\\)[ \t]*)")))
(save-excursion
(when (or (re-search-backward regexp1 nil t)
(re-search-forward regexp1 nil t)
(re-sear
hen, evaluate new definitions in the same source file and they
will be evaluated in the correct namespace (regardless of what
namespace is active in the repl).
--
Bill Clementson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
On Thu, Jan 1, 2009 at 6:02 PM, Mark H. wrote:
>
> On Jan 1, 5:44 pm, "Stephen C. Gilardi" wrote:
>> On Jan 1, 2009, at 7:57 PM, Bill Clementson wrote:
>>
>> > Or is there some other "dynamic
>> > documentation for a function" that you
On Thu, Jan 1, 2009 at 1:05 PM, Mark H. wrote:
>
> On Jan 1, 5:55 am, "Remco van 't Veer" wrote:
>> I got repl to start with a small change to swank-clojure:
>>
>> http://github.com/remvee/swank-clojure/commit/ed89d6997bce3c5076e779a...
>
> I changed that one line to say
>
> (defslimefn create-
It should be noted that (in order to use the new slime-repl mods (if
you download the latest slime and apply Remco's patch), you will have
to modify your .emacs startup to include the following:
(slime-setup '(slime-repl))
- Bill
On Thu, Jan 1, 2009 at 11:40 AM, Bill Clementson wr
Yes, this does work too. I'll forward on your patch to Jeffrey.
Thanks,
Bill
On Thu, Jan 1, 2009 at 5:55 AM, Remco van 't Veer wrote:
>
> I got repl to start with a small change to swank-clojure:
>
>
> http://github.com/remvee/swank-clojure/commit/ed89d6997bce3c5076e779ad6e79e37a44d84432
>
>
-mode-map (kbd "C-c
D") 'slime-javadoc)
))
You could change the slime-repl-mode-map entries to instead refer to
the equivalent inferior-lisp repl mode map; however, you'll just have
to change them ba
dding the following to your .emacs file fix this for you?:
(add-hook 'slime-connected-hook (lambda ()
;; do any other post-slime-startup stuff here
(bury-buffer)))
--
Bill Clementson
--~--~-~--~~~
Hi Meikel,
On Thu, Dec 18, 2008 at 11:18 PM, Meikel Brandmeyer wrote:
> On 19 Dez., 02:10, bc wrote:
>> For clojure-contrib, it would make sense to create a matching tarball
>> whenever a Clojure release occurs. For the other 3, it would be
>> necessary for someone to test and save off a copy o
On Thu, Dec 18, 2008 at 7:05 PM, levand wrote:
>
> I must say, this is absolutely the first thing I've found about
> Clojure that is difficult or cumbersome - I've been more than pleased
> with how easy everything else has been. I'm a new to Emacs+Slime, and
> their learning curve has been the mo
t;>
>> java.lang.IllegalArgumentException: No matching field found: separator
>> for class java.lang.Class (NO_SOURCE_FILE:0)
>> [Thrown class clojure.lang.Compiler$CompilerException]
>>
>> I updated everything clojure related - clojure itself, swank-clojure,
>&
ns?
>
> Have a nice day,
> mosi
>
> PS: Thanx Feng hou for helping to find out the most basic swank-
> clojure setup. It was not clear from the docs, that the following is
> needed to start:
> (swank/start-server "/dev/null" :port 4005 :dont-close true)
>
> In
Hi Matt,
FYI - Jeffrey Chu just sent me an email and the patch has now been
applied to swank-clojure.
- Bill
On Wed, Dec 10, 2008 at 1:09 PM, Bill Clementson <[EMAIL PROTECTED]> wrote:
> Hi Matt,
>
> On Wed, Dec 10, 2008 at 12:47 PM, MattyDub <[EMAIL PROTECTED]> wrote:
>
Hi Matt,
On Wed, Dec 10, 2008 at 12:47 PM, MattyDub <[EMAIL PROTECTED]> wrote:
>
> I can confirm that that patch fixed my problem - I can now M-. to
> render-place. Thanks, Bill!
Good to hear that the patch fixes the issue for you.
> What paths does slime-edit-definition search for the defin
Oops, that patch had my debugging statements in it. Here's the correct
one to use.
On Wed, Dec 10, 2008 at 11:44 AM, Bill Clementson <[EMAIL PROTECTED]> wrote:
> Hi Matt,
>
> I had a bit of free time this morning, so I looked into this further
> and came up with a patch (at
Hi Matt,
I had a bit of free time this morning, so I looked into this further
and came up with a patch (attached). I've forwarded the patch to
Jeffrey as well, so it should find it's way into swank-clojure in due
course.
Cheers,
Bill Clementson
On Wed, Dec 10, 2008 at 9:57 AM, Bill
protocol at
> this point?
> -Matt
>
> On Dec 9, 11:03 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote:
>> Hi Matt,
>>
>>
>>
>> On Tue, Dec 9, 2008 at 6:43 PM, MattyDub <[EMAIL PROTECTED]> wrote:
>>
>> > I did an 'svn upd
Hi Matt,
On Tue, Dec 9, 2008 at 6:43 PM, MattyDub <[EMAIL PROTECTED]> wrote:
>
> I did an 'svn update' on my clojure (I'm now at revision 1149), and
> ran ant clean, then ant (the default target). Then I deleted my old
> swank-clojure directory, and did a git clone of
> git://github.com/jochu/s
Hi Matt,
On Tue, Dec 9, 2008 at 4:15 PM, MattyDub <[EMAIL PROTECTED]> wrote:
>
> I recently tried M-. for the first time with clojure + SLIME and it
> broke for me (with a "Lisp error: (error "Synchronous Lisp Evaluation
> aborted.")"); other parts of SLIME work (e.g., C-M-x, or C-x C-e), but
> t
Hi Tom,
On Tue, Dec 9, 2008 at 12:28 PM, Tom Emerson <[EMAIL PROTECTED]> wrote:
>
> Nice post as always, Bill.
Thanks. :)
> One thing I add to my .emacs for SLIME/Clojure is the following:
>
> (global-set-key "\C-cs" 'slime-selector)
> (def-slime-selector-method ?l
> "most recently visited clo
On Mon, Dec 8, 2008 at 4:29 PM, mosi <[EMAIL PROTECTED]> wrote:
> thank you for helping the beginners like me with the setup of emacs,
> slime and clojure.
> I tried first the official method described elsewhere on this forum -
> ubuntu linux instructions.
> Unsuccessful.
> Following your instruct
Hi Mark,
I don't use Clojure Box or Windows; however, your questions relate
mostly to Emacs/SLIME, so I've answered the ones I could below.
Incidentally, all of these answers could have been found by reading
the SLIME and/or Emacs documentation.
On Sun, Dec 7, 2008 at 11:45 AM, Mark Engelberg
<[
Hi Stuart,
On Sun, Dec 7, 2008 at 6:51 AM, Stuart Halloway
<[EMAIL PROTECTED]> wrote:
> Cool idea. All my posts are tagged "clojure" on our blog, if that helps:
>
> http://blog.thinkrelevance.com/tags/clojure
The pipe doesn't check whether the post is tagged or not, so long as
it contains the wo
On Fri, Dec 5, 2008 at 5:23 PM, Mon Key <[EMAIL PROTECTED]> wrote:
>
> Nice blog entry :)
Thanks! :)
> My setup tends to mirror yours esp. as I've culled most of it from
> your blog over the years...
> Most of my startup scripts are modified versions of those you've
> shared elsewhere.
Glad you
On Sat, Dec 6, 2008 at 2:11 PM, Randall R Schulz <[EMAIL PROTECTED]> wrote:
>
> On Saturday 06 December 2008 13:24, bc wrote:
>> Hi all,
>>
>> A lot of people are writing Clojure-related blog posts; however, I am
>> often only interested in the Clojure posts they do and not the other
>> posts. The
On Sat, Dec 6, 2008 at 2:42 PM, Chouser <[EMAIL PROTECTED]> wrote:
>
> On Sat, Dec 6, 2008 at 4:24 PM, bc <[EMAIL PROTECTED]> wrote:
>>
>> A lot of people are writing Clojure-related blog posts; however, I am
>> often only interested in the Clojure posts they do and not the other
>> posts.
>
> Tha
nd different threading
advances), his quote "Concurrency is the next major revolution in how
we write software" was made in the context of an overview of
concurrency in general. In any case, he was probably using the
"all-encompassing" definition of concurrency (which is
cvs -d :pserver:anonymous:[EMAIL PROTECTED]:/project/slime/cvsroot
co slime
cd clojure/trunk
ant
cd -
cd clojure-contrib/trunk
ant
--
Bill Clementson
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure"
On Thu, Nov 20, 2008 at 12:27 PM, Chouser <[EMAIL PROTECTED]> wrote:
>
> On Thu, Nov 20, 2008 at 2:46 PM, bc <[EMAIL PROTECTED]> wrote:
>>
>> Very nice! However, shouldn't the modification to *print-length* be
>> inside a binding - e.g.:
>
> Oh, no, those are two independent settings. 'show' is n
On Tue, Nov 18, 2008 at 5:01 PM, islon <[EMAIL PROTECTED]> wrote:
>
> I checkouted the last clojure from svn, swank-clojure and clojure-mode
> too.
> When I start slime it give me the following errors:
>
> Clojure
> user=> (add-classpath "file:home/islon/opt/swank-clojure/")
> nil
> user=>
> (
rver -cp
/Users/bc/lisp/clojure/clojure/trunk/clojure.jar clojure.lang.Repl")
(pushnew "/Users/bc/lisp/clojure/clojure-mode" load-path
(require 'clojure-auto)
5. Restart Emacs. Load a clojure (clj) file in a buffer, press C-c C-z
to get a repl.
That is far simpler to ge
n run-clojure ()
"Starts clojure in Slime"
(interactive)
(slime 'clojure))
(global-set-key [f5] 'run-clojure)
(global-set-key [(control f11)] 'slime-selector)
(add-hook 'slime-connected-hook 'slime-redirect-inferior-output)
8. Restart Aquamacs and press F
> --Darren
>
>
> On Nov 17, 11:42 am, "Bill Clementson" <[EMAIL PROTECTED]> wrote:
>> You could add the following to your .emacs file:
>>
>> (add-hook 'slime-mode-hook 'slime-redirect-inferior-output)
>>
>> --
>> Bill Clemen
You could add the following to your .emacs file:
(add-hook 'slime-mode-hook 'slime-redirect-inferior-output)
--
Bill Clementson
On Mon, Nov 17, 2008 at 11:31 AM, Stuart Halloway
<[EMAIL PROTECTED]> wrote:
>
> Is there are way to make (slime-redirect-inferior-outpu
Hi Peter,
On Sun, Nov 16, 2008 at 11:40 AM, Peter Wolf <[EMAIL PROTECTED]> wrote:
>
> This is for the other NOOBs...
>
> Apparently to use SLIME with Clojure, you need to install a Common Lisp.
This is not correct. You don't need to install a Common Lisp in order
to use SLIME with Clojure.
> I
namespace differences from earlier
versions, older clojure-swank installs won't work with it (and vice
versa). Try blowing away clojure, clojure-contrib, and clojure-swank
and grabbing the latest git/svn versions of each and re-building
everything. After building, you'll also need to u
/bc.tech.coop/blog/081105.html
>>
>> Congratulations Stuart, I've bought the combo package and am looking
>> forward to reading the book and following progress as you flesh out
>> material in the remaining chapters!
>>
>> --
>> Bill Clementson
>>
Hi Michael,
On Sat, Nov 1, 2008 at 6:24 AM, Michael Wood <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> On Wed, Oct 29, 2008 at 6:23 PM, bc <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>>
>> I've posted a new article on my blog about Clojure Namespaces:
>> http://bc.tech.coop/blog/081029.html
>>
>> I would ap
On Wed, Oct 29, 2008 at 1:20 PM, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
>
>
> On Oct 29, 2:03 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote:
>> Hi Stuart,
>>
>> Thanks, that's good to know - I didn't realize the ns macro did that!
Hi Stuart,
Thanks, that's good to know - I didn't realize the ns macro did that!
I just had a look at the docstring for ns:
"Sets *ns* to the namespace named by name (unevaluated), creating it
if needed. references can be zero or more of: (:refer-clojure ...)
(:require ...) (:use ...) (:imp
Hi Peter,
On Tue, Oct 28, 2008 at 11:27 AM, Peter Wolf <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I am new to Clojure, but not Java or LISP (I used to work at LMI).
>
> I am considering a project written in a mixture of Clojure, Java and
> Groovy. Clojure for the concurrent inner loop. Groov
t;>> @a2))})
>>> agents
>>
>> I've not gotten around to playing with the concurrency features of
>> Clojure yet, so I'm just commenting "theoretically" on your code. In
>> "guess-pi-agent", you use &quo
s "dies", won't your code wait forever? I
would think that it would be preferable to use "await-for" (with a
timeout) so that the result can still be guessed based on the samples
that have come back from the other agents. If you plan to use a
variation of this code in
On Mon, Oct 27, 2008 at 4:06 PM, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
>
>
> On Oct 27, 3:15 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote:
>> On Mon, Oct 27, 2008 at 11:31 AM, Rich Hickey <[EMAIL PROTECTED]> wrote:
>>
>> > On
On Mon, Oct 27, 2008 at 11:31 AM, Rich Hickey <[EMAIL PROTECTED]> wrote:
>
>
>
> On Oct 27, 12:04 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote:
>> Hi Chouser
>>
>> On Mon, Oct 27, 2008 at 8:46 AM, Chouser <[EMAIL PROTECTED]> wrote:
Hi Chouser
On Mon, Oct 27, 2008 at 8:46 AM, Chouser <[EMAIL PROTECTED]> wrote:
>
> I think it's generally better to use = instead of .equals for
> equality, unless you have a specific reason to not use = (which I
> don't think is the case here).
Only that it allowed me to talk about Java interop
Hi Stuart,
Thanks, that's a nice alternative approach!
Bill
On Mon, Oct 27, 2008 at 8:12 AM, Stuart Halloway
<[EMAIL PROTECTED]> wrote:
>
> Hi Bill,
>
> You could do something like this:
>
> (defn seq-xor-2-seqs
> "Returns the unique values that are in one sequence but not the
> other."
> [
On Fri, Oct 24, 2008 at 10:31 AM, Craig Andera <[EMAIL PROTECTED]> wrote:
>
>>> It's very likely/nearly certain I'm still doing something wrong - I
>>> appreciate the help.
>
> Indeed it was me: everything started working as soon as I made sure my
> .clj files were in CLASSPATH the way require des
On Fri, Oct 24, 2008 at 8:16 AM, Craig Andera <[EMAIL PROTECTED]> wrote:
>
>> No, that's not enough. You didn't specify the port that you want to
>> connect to JSwat on. add "address=" (or something similar) to this
>> to specify which port you want to use. In my blog example, I'm using
>> "88
. In JSwat, you should see that the breakpoint has been hit and
>> program execution is paused
>
> Nope. :p
>
> Fortunately I've since solved the problem I originally wanted the
> debugger for (yay REPL), but it still would be nice to get this to
> work...
If you do the
JSwat, open the same Clojure source file you loaded in step #2
and add a breakpoint (you can just click on the source line#) - note
that you can only add breakpoints to lines in a defn, not lines in a
defmacro definition
5. In the Clojure repl evaluate a form that will call the function
that has your bre
56 matches
Mail list logo