Questions tagged [swank]

Swank is the Common Lisp server component of SLIME, the Superior Lisp Interaction Mode for Emacs.

Swank is the Common Lisp server component of , the Superior Lisp Interaction Mode for .

83 questions
21
votes
5 answers

What does #+#. mean in lisp?

It is almost impossible to google, hence my understanding is limited to contextual clues from reading through the slime source code: perhaps it is part of the object system in common lisp? Something like 'self'? snippet: (cond…
Tim Hanson
  • 211
  • 2
  • 3
16
votes
3 answers

node.js - eval'ing to a live process

Did anyone set up something like this for himself using the existing node.js REPL? I didn't think of a quick way to do it. The way I do it today is using emacs and this: https://github.com/ivan4th/swank-js This module is composed of: A SLIME-js…
ayal gelles
  • 2,829
  • 1
  • 21
  • 18
14
votes
4 answers

What does the 'swank-clojure' do exactly, and do we have 'swank-SOMETHING_ELSE'?

My superficial understanding is that 'swank-clojure' makes 'M-x slime-connect' possible. I mean, it gives a connection to a clojure server something like 'lein swank'. Is my understanding correct? If not, what's the purpose of swank? Then, is there…
prosseek
  • 182,215
  • 215
  • 566
  • 871
12
votes
3 answers

Stopping infinite loops while running clojure tests in emacs with leiningen and swank/slime

In certain kinds of code it's relatively easy to cause an infinite loop without blowing the stack. When testing code of this nature using clojure-test, is there a way to abort the current running tests without restarting the swank server? Currently…
dgtized
  • 3,192
  • 2
  • 24
  • 23
11
votes
1 answer

Good workflow with emacs+swank+slime+clojure?

I just wanted opinion on good workflow using the emacs environment with clojure+swank+slime. I often find myself doing very repetitive keycommands and wonder if there is an obvious better way. I include swank with lein and start my project using…
grm
  • 5,197
  • 5
  • 29
  • 35
11
votes
1 answer

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?
Arthur Ulfeldt
  • 90,827
  • 27
  • 201
  • 284
10
votes
3 answers

clojure swank server opens public port?

(This question has been downvoted, which I find strange. How have I offended?) Am I right to think that running a swank server usually opens port 4005 to the world, not bound to localhost-only connections? So anyone hacking in a café is not only…
John Lawrence Aspden
  • 17,124
  • 11
  • 67
  • 110
10
votes
4 answers

Getting started with SLIME and SWANK: Lisp connection closed unexpectedly: connection broken by remote peer

I was trying to use the slime-connect function to get access to a remote server with sbcl. I followed all the steps from the slime.mov movie from Marco Baringer, but I got stuck when creating the ssh connection for slime. This is after already…
wallyqs
  • 7,456
  • 5
  • 26
  • 25
10
votes
2 answers

Interact with a locally long-running Common Lisp image, possibly daemonized, from the command line

How could one interact with a locally long-running Common Lisp image, possibly daemonized, from the command line? I know it is possible to run a Common Lisp function from a Terminal command prompt, I am also aware of this. I would need to do a…
gsl
  • 1,063
  • 1
  • 16
  • 27
9
votes
4 answers

Clojure emacs slime + swank directory question

I'm using emacs with clojure-swank and slime and trying to set my development environment. And I ran into a problem. When I start a repl I'm stuck in an unknown directory preventing me to load my namespace. Because the clojure repl can't find the…
MrHus
  • 32,888
  • 6
  • 31
  • 31
9
votes
4 answers

Clojure Editor written in Clojure

Note: I'm not looking for LightTable. I really am looking for a Clojure Editor implemented in Clojure. Recently, I've been studying slime/swank/elisp. Although it's an amazing system, I actually don't understand (beside reasons of historical…
user1311390
8
votes
4 answers

I can't initialize neither swank nor clojure-jack-in

I've a problem. I've installed clojure, slime, slime-repl and elein using marmalade. Now I open my project and call elein-swank. I get this: Starting swank.. error in process filter: slime-presentation-init-keymaps: Symbol's function definition is…
user1050817
  • 915
  • 2
  • 11
  • 21
8
votes
2 answers

How I can eval a buffer and/or an instruction within Emacs with Swank and SLIME?

I've successfully installed clojure-mode, slime, slime-repl within Emacs. I start a swank server with "lein swank" and hang slime to it with "slime-connect". I can use the SLIME REPL to evaluating Clojure expression within the REPL. How can I eval a…
Alfredo Di Napoli
  • 2,281
  • 3
  • 22
  • 28
8
votes
2 answers

how to deploy a lisp image with swank, and run as a daemon

As seid in the title, I want to deploy a Lisp image which is runnable with Swank. This can be done by using the image dump function provided by lisp implementations. But how can it run as a daemon? Detachtty does a good job, but when I deploy,…
whitelilis
  • 113
  • 4
7
votes
2 answers

Can I use swank-js to complete node.js APIs in js2-mode?

I use swank-js in js2-mode in emacs. Can I use it to complete node.js build-in or third-party APIs such as fs.readFile, fs.writeFile, express.use, async.forEach etc. in js2-mode ? If yes, what would be the best setup for it ? Any help is…
Saddle Point
  • 3,074
  • 4
  • 23
  • 33
1
2 3 4 5 6