Re: clojure rant

2008-09-13 Thread Apurva Sharan
I am trying out the changes - but this doesn't appear to work as mentioned in the README. This is what I have now in my .emacs: (require 'clojure-mode) (require 'clojure-auto) (require 'swank-clojure-autoload) (setq swank-clojure-jar-path absolute path to clojure.jar) When I start emacs - I

Re: clojure rant

2008-09-13 Thread Apurva Sharan
Oops - hit Ctrl-S too soon :( The error is: --- Loading /home/apurva/.emacs-contrib/swank-clojure/swank-clojure.el (source)...done An error has occurred while loading `/home/apurva/.emacs': error: Error: You must specify a swank-clojure-jar-path. Please see README of swank-clojure. ---

[PATCH] Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread meredydd
Hey all, The current version of the (with-connection) macro in clojure- contrib doesn't return the result of its body. (It just returns nil from the commit() call at the end of the transaction). I attach a patch to achieve this behaviour, so it can be used in a functional style. Meredydd --

Re: Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread Rich Hickey
On Sep 13, 7:44 am, meredydd [EMAIL PROTECTED] wrote: Hey all, The current version of the (with-connection) macro in clojure- contrib doesn't return the result of its body. (It just returns nil from the commit() call at the end of the transaction). I attach a patch to achieve this

Re: clojure rant

2008-09-13 Thread Alexey Goldin
What is the value of variable swank-clojure-jar-path in emacs? Try to set it by running M-x customize-group swank-clojure , I wonder if it helps. I got it running finally with Matt advice. On Sep 13, 1:47 am, Apurva Sharan [EMAIL PROTECTED] wrote: Oops - hit Ctrl-S too soon :( The error is:

Re: clojure rant

2008-09-13 Thread Stuart Sierra
Clojure/SLIME integration may be in flux after the recent API changes. But plain old inferior-lisp mode works just fine: M-x customize-variable RET inferior-lisp-program ...set the path of your Clojure startup script... M-x inferior-lisp A simple startup script could be simply:

Re: [PATCH] Make clojure.contrib.sql/with-connection return the body result

2008-09-13 Thread Stephen C. Gilardi
On Sep 13, 2008, at 7:44 AM, meredydd wrote: Hey all, The current version of the (with-connection) macro in clojure- contrib doesn't return the result of its body. (It just returns nil from the commit() call at the end of the transaction). I attach a patch to achieve this behaviour, so

Re: Clojure Poll 09/2008

2008-09-13 Thread kyle smith
What are you doing with Clojure? I'm trying to write a DSL for molecular dynamics analysis (with partial success). Users will be able to compose complex properties from basic info such as bond lengths/angles, position, velocity, etc. I'd like to add regression and integrate it with a 3d viewer

clojure.contrib.sql updated

2008-09-13 Thread Stephen C. Gilardi
I've made some changes to clojure.contrib.sql: - Renamed some functions/macros to shorter names: get-connection - connection execute-commands - do-commands execute-prepared-statement - do-prepared with-query-results - with-results - Added create-table, drop-table

Re: Clojure Poll 09/2008

2008-09-13 Thread Craig McDaniel
What are you doing with Clojure? I work in a fairly conservative environment where they probably wouldn't approve of my using a language in an alpha state, much less a variant of Lisp! But since I love the language and the interactive environment with Emacs, I decided it's easier to beg

Re: Clojure Poll 09/2008

2008-09-13 Thread Moxley Stratton
On Sep 10, 2008, at 11:40 AM, Rich Hickey wrote: What are you doing with Clojure? Nothing at the moment. I wrote a knowledgebase engine inspired by the Cyc project, and I also wrote part of a web application in Compojure that lets users create web forms. What 3 features would you most