Re: Swank-clojure: slime-eval-print-last-expression failing.

2008-10-20 Thread Luke Hope

After some hacking and a little help from #clojure, here is my initial
gift to the community:

Add the following function definition to
swank-clojure/swank/commands/basic/basic.clj to get C-j working in
*slime-scratch*.

(in-ns 'swank.commands.basic) ;; optional, only if you have the below
function in a separate file.

(defslimefn eval-and-grab-output [string]
  (with-emacs-package
(with-local-vars
[retval nil]
  (list (with-out-str
  (var-set retval (pr-str (first (eval-region string)
(var-get retval)



On Mon, Oct 20, 2008 at 10:18 AM, Luke Hope [EMAIL PROTECTED] wrote:
 Hello,

 I am a common lisp programmer and I use Slime extensively. I am
 looking into using Clojure for an upcoming project (I have experience
 with ABCL, but it is too slow) and I have clojure and swank-clojure
 installed.  Unfortunately slime-eval-print-last-expression (C-j in
 *slime-scratch*) is failing (evaluation aborted), I think because it
 uses asynchronous evaluation.  Is this a known issue or a regression?
 Is it fixable?

 I really want to be able to adapt my workflow for working with
 clojure, and I use C-j all the time.

 All code except for Emacs itself is current as of 2 hours ago.  The
 behaviour was duplicated by a member of #clojure.

 Hope you can help,

 -Luke


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---



Swank-clojure: slime-eval-print-last-expression failing.

2008-10-19 Thread Luke Hope

Hello,

I am a common lisp programmer and I use Slime extensively. I am
looking into using Clojure for an upcoming project (I have experience
with ABCL, but it is too slow) and I have clojure and swank-clojure
installed.  Unfortunately slime-eval-print-last-expression (C-j in
*slime-scratch*) is failing (evaluation aborted), I think because it
uses asynchronous evaluation.  Is this a known issue or a regression?
Is it fixable?

I really want to be able to adapt my workflow for working with
clojure, and I use C-j all the time.

All code except for Emacs itself is current as of 2 hours ago.  The
behaviour was duplicated by a member of #clojure.

Hope you can help,

-Luke

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Clojure group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~--~~~~--~~--~--~---