<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blackkettle &#187; Clojure</title>
	<atom:link href="http://blog.blackkettle.org/category/coding/clojure/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.blackkettle.org</link>
	<description>Things of Occasional Interest</description>
	<lastBuildDate>Wed, 10 Feb 2010 16:03:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clojure&#8217;s REPL and Readline</title>
		<link>http://blog.blackkettle.org/2008/07/04/clojures-repl-and-readline/</link>
		<comments>http://blog.blackkettle.org/2008/07/04/clojures-repl-and-readline/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 18:13:44 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Clojure]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://blog.blackkettle.org/?p=46</guid>
		<description><![CDATA[The standard advice for getting a practical REPL for Clojure is to use jLine, but that&#8217;s not really necessary if you&#8217;re not on Windows.  rlwrap does the job admirably, and was only an
apt-get install rlwrap
 away for me.
]]></description>
			<content:encoded><![CDATA[<p>The standard advice for getting a practical REPL for Clojure is to use jLine, but that&#8217;s not really necessary if you&#8217;re not on Windows.  <a href="http://utopia.knoware.nl/~hlub/uck/rlwrap/">rlwrap</a> does the job admirably, and was only an
<pre><code>apt-get install rlwrap</code></pre>
<p> away for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackkettle.org/2008/07/04/clojures-repl-and-readline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clojure, Slime, Documentation?</title>
		<link>http://blog.blackkettle.org/2008/06/26/clojure-slime-documentation/</link>
		<comments>http://blog.blackkettle.org/2008/06/26/clojure-slime-documentation/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 10:38:48 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Clojure]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[slime]]></category>

		<guid isPermaLink="false">http://blog.blackkettle.org/?p=41</guid>
		<description><![CDATA[Update:  It turns out that the Gutsy-included version of slime is rather out-of-date, and the clojure scripts are based on the CVS version.  If you&#8217;re having the problem below, get thee hence and cvs thyself.
There seems to be a general theme in the emacs world. If I could give it a voice, it [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong>  It turns out that the Gutsy-included version of slime is rather out-of-date, and the clojure scripts are based on the CVS version.  If you&#8217;re having the problem below, get thee <a href="http://common-lisp.net/project/slime/">hence</a> and cvs thyself.</p>
<p>There seems to be a general theme in the emacs world. If I could give it a voice, it might say &#8220;I&#8217;m great.  No, I&#8217;m not going to tell you how to use me.  You mean you don&#8217;t already know?&#8221;</p>
<p>Let me put this in context.  You might be able to tell from my previous posts that I&#8217;ve got a long-standing, from-a-distance interest in all things lispy.  Naturally, my attention fell on Clojure (fairly recently, admittedly).  My next thought was that I should get slime set up to use it so that I could use a natural environment to try it out, and this is where things started to get dicey.</p>
<p><strong>Almost</strong> everything works; here&#8217;s the relevant section from my .emacs:</p>
<pre><code>(defun set-clojure-inferior-lisp ()
  (setq inferior-lisp-program
        (let* ((java-path "java")
               (java-options "")
               (clojure-path "~/Documents/Projects/clojure/bin/")
               (class-path-delimiter ";")
               (class-path (mapconcat (lambda (s) s)
                                      (list (concat
																						 clojure-path "clojure.jar"))
                                      class-path-delimiter)))
          (concat java-path
                  " " java-options
                  " -cp " class-path
                  " clojure.lang.Repl"))))

(defun clojure-boot ()
  (interactive)
  (require 'slime)
  (setq slime-net-coding-system 'utf-8-unix)
  (slime-setup)
  (add-to-list 'load-path "~/emacs/clojure-mode")
  (require 'clojure-auto)
  (set-clojure-inferior-lisp)
  (setq slime-lisp-implementations
        '((clojure ("~/emacs/clojure-extra/sh-script/clojure")
                   :init clojure-init)))
  (add-to-list 'load-path "~/emacs/swank-clojure")
  (require 'swank-clojure)
  (cua-mode t)
  (slime))
</code></pre>
<p>The annoying thing is what doesn&#8217;t work: exceptions are getting lost, and the error message that comes back for each and every one is distinctly unhelpful:</p>
<pre><code>error in process filter: Wrong number of arguments: nil, 3</code></pre>
<p>Where do I go from here?  Google knows nothing of this error.  I&#8217;ve emailed the author of the swank-clojure code for assistance; I&#8217;ll update here if I get anywhere with this.  It&#8217;s really frustrating to be this close to what looks like a brilliant development environment, just to hit a brick wall like this.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackkettle.org/2008/06/26/clojure-slime-documentation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
