slime

sbcl runs forever on second call of function

The function: Given a list lst return all permutations of the list's contents of exactly length k, which defaults to length of list if not provided. (defun permute (lst &optional (k (length lst))) (if (= k 1) (mapcar #'list lst) (loop for item in lst nconcing (mapcar (lambda (x) (cons item x)) (permute (remov...

How to gracefully exit SLIME and EMACS

Hi All, I have a question regarding how to "gracefully exit SLIME", when I quit Emacs. Here is the relevant portion of my config file: ;; SLIME configuration (setq inferior-lisp-program "/usr/local/bin/sbcl") (add-to-list 'load-path "~/Scripts/slime/") (require 'slime) (slime-setup) ;; configure SLIME to gracefully quit when emacs ;;...

Jump to function definition in Emacs + Slime/leiningen-Swank + Clojure

I'm using Emacs with clojure mode and slime connected to a swank server produced by running lein swank and would really love to be able to easily jump to function definitions within my project. Can I do this with out having to manually rebuild tags every time I change branches? ...

Other editors that can use slime/swank?

I have been quite happy with Emacs/slime+swank for a long time, and was just wondering if there are any other editors/IDEs that can connect to a swank instance? ...

Can I connect two emacs/slimes to the same swank instance?

when I start swank through leiningen it accepts the next slime connection and off I go. I would really like to have several emacs instances connect to the same swank instance. Can I do this? can I do this through leiningen? ...

How to Reload files upon save when using swank+leiningen+emacs

I'm looking to set up slime+lein-swank to reload source files referenced from the repl when i save the file. currently i do this: edit file save file switch to repl (use :reload-all 'com.package.namespace) test stuff I want to not have to remember to do step 4. ...

a question on common lisp

Hello people, I'm getting crazy with a small problem here, I keep getting an error and I cant seem to figure out why, the code is supposed to change the range of a list, so if we give it a list with values (1 2 3 4) and we want to change the range in 11 to fourteen the result would be (11 12 13 14) the problem is that the last functio...

Setting slime-enable-evaluate-in-emacs

Hi, I am using SBCL with slime, and have the following code: (swank::eval-in-emacs '(with-current-buffer (slime-repl-buffer) (insert (propertize "foo" 'font-lock-face '(:foreground "red"))))) (print "here is some text") In general, if I try to execute anything with swank:: prefixed to it, emacs will give a security error, and ...

Using clojure.contrib functions in slime REPL

I want to use the functions in the clojure.contrib.trace namespace in slime at the REPL. How can I get slime to load them automatically? A related question, how can I add a specific namespace into a running repl? On the clojure.contrib API it describes usage like this: (ns my-namespace (:require clojure.contrib.trace)) But adding t...

In Emacs, how can I see which slime version is being used?

I just upgraded my slime using elpa in Emacs. But I wonder if things are like they should be now, because when I removed the old version using elpa, it complained it could not remove a certain folder. So, when I start up Emacs (I know, I shouldn't have closed it), how I can see which slime version actually gets used? Is there a command l...

How can I stop a running operation in the SLIME REPL?

Is there a way to stop a running operation in the SLIME REPL? The Clojure SLIME folks apparently have some way to do this, so how about in ordinary Common Lisp? Thanks /Erik ...

How do I use unicode (UTF-8) characters in Clojure regular expressions?

This is a double question for you amazingly kind Stacked Overflow Wizards out there. How do I set emacs/slime/swank to use UTF-8 when talking with Clojure, or use UTF-8 at the command-line REPL? At the moment I cannot send any non-roman characters to swank-clojure, and using the command-line REPL garbles things. It's really easy to do ...

auto indentation on common lisp emacs + slime + sbcl in windows

Hello, all! I can't use auto indentation function on emacs + slime + sbcl when I define my function and so on. My .emacs file configuration is this: (setq inferior-lisp-program "D:/emacs/sbcl_1.0.37/sbcl.exe" lisp-indent-function 'common-lisp-indent-function slime-complete-symbol-function 'slime-fuzzy-complete-symbol ...

Troubles Importing Clojure Libs in Paradise

I occasionally get this problem, and generally work around it, but it's rather frustrating. I have all of Incanter (check it out if you don't know it: it's superb) on my classpath. I try to import it (through a Slime REPL) like this: user> (use 'incanter.core), but fail. Doing this: user> (use 'clojure.contrib.def) works just fine, a...

emacs (cocoa emacs) vs aquamacs for running clojure on Mac OS X

I used Aquamacs so far, and I need to install and run clojure using SLIME. I googled to get some way to use clojure on SLIME of Aquamacs, but without success. Questions Does anyone succeed installing clojure on Aquamcs? Or, can you guess why clojure on Aqumac doesn't work? Is it normal that emacs and aquamacs can't share the same ELP...

Clisp + Emacs compile-and-load-file

Hello, Starting to learn Common lisp. Instal in my debian 5.03 clisp, emacs-23.1 and slime. Write in .emacs: (setq inferior-lisp-program "/usr/bin/clisp") ; your Lisp system (add-to-list 'load-path "/home/slime/") ; your SLIME directory (require 'slime) (slime-setup '(slime-scratch slime-editing-commands slime-repl)) ...

repl is not working(clojure box)

Hello all I want to use syntax highlighting for clojure in emacs + slime + clojure. So I did following step. run clojure box M-x clojure-mode in slime-repl clojure syntax highlighting is success. But repl is not working. I expect a result of 3. But cursor blinks. repl no response. ; SLIME user> (+ 1 2) -K\**_ *slime-repl cloju...

Running clojure and other lisp at the same time on emacs.

I use Aquamacs, and aquamacs is pre-equipped with slime. (setq inferior-lisp-program "/usr/local/bin/sbcl") #####!!! (add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME/contrib") (add-to-list 'load-path "/Library/Application Support/Aquamacs Emacs/SLIME") (require 'slime) (slime-setup) As is asked in here, I tr...

What are the good things about slime?

As I asked here, I couldn't make it run Aquamacs/slime/clojure, but I could use Auqamacs/clojure with 'M-x conjure-mode', then C-c C-z (run clojure) and C-c C-e (run expression). I don't have an experience with SLIME, but I feel that C-c C-z and C-c C-e is just enough for lisp/conjure REPL or debugging. What features SLIME has more th...

emacs slime-connect version of clojure doesn't lookup the $CLASSPATH

I need to use my clojure functions with slime-connect. And I put all my libs in the $CLASSPATH. As I learned from this question. I used the following command to check the CLASSPATH for current environment, and I found none of my $CLASSPATH is used. How can I attach my class path for my clojure with emacs/slime-connect? I installed my...