slime

load external with emacs-slime

北城以北 提交于 2019-12-07 22:08:53
问题 I'd like to install slime on my Emacs 23.2.1. Since M-x slime doesn't succeed in start it, I modified the ~/.emacs file. (setq inferior-lisp-program "/usr/bin/sbcl") (add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/") (require 'slime) (slime-setup) Of course this doesn't work for the slime path in the second line of ~/.emacs file should be /usr/share/common-lisp/source/swank instead. However, after I changed this directory, the error remains. It says like this: Couldn't load "/usr

Why does REPL treat clojure.core/doc as a var?

◇◆丶佛笑我妖孽 提交于 2019-12-07 05:08:13
问题 I'm trying to get documentation using the Clojure doc function, but can't get it recognized from the REPL (I'm using Emacs and SLIME). The following sequence describes what's going on (error message follows immediately after each line): gaidica.core> (doc first) ; Evaluation aborted. Unable to resolve symbol: doc in this context [Thrown class java.lang.Exception] gaidica.core> (clojure.core/doc first) ; Evaluation aborted. No such var: clojure.core/doc [Thrown class java.lang.Exception] user>

Copy/Yank entire Lisp form in Slime

▼魔方 西西 提交于 2019-12-07 04:57:25
问题 Is there a way to copy/yank a whole a form in Slime/Emacs? For instance, if I have the following function: (myfunc (lst) (myotherfunc lst)) I'd like to yank/copy: (myotherfunc lst) by issuing a keyboard shortcut when my cursor is at the opening or closing parenthesis for that form (at the point where Slime/Emacs does parenthesis matching). 回答1: In my Emacs, function kill-sexp is bound to C-M-k . That is, assuming the point is just before an opening delimiter of a balanced expression , press

How can I unintern a qualified method?

早过忘川 提交于 2019-12-06 21:35:44
问题 During development I defined an 'initialize-instance :after' method which after a while was not needed anymore and actually gets in my way because inside it calls code that is not valid anymore. Since the unintern function does not have an argument for the qualifier, is there any way I can "unintern" the symbol-qualifier combination of a method so that I don't have to slime-restart-inferior-lisp and load the project again from the start? 回答1: You can use the standard functions find-method and

load external with emacs-slime

回眸只為那壹抹淺笑 提交于 2019-12-06 10:42:30
I'd like to install slime on my Emacs 23.2.1. Since M-x slime doesn't succeed in start it, I modified the ~/.emacs file. (setq inferior-lisp-program "/usr/bin/sbcl") (add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/") (require 'slime) (slime-setup) Of course this doesn't work for the slime path in the second line of ~/.emacs file should be /usr/share/common-lisp/source/swank instead. However, after I changed this directory, the error remains. It says like this: Couldn't load "/usr/share/emacs/site-lisp/slime/swank-loader.lisp": file does not exist. Why would this load external remain

Error Emacs slime: eval-buffer: Symbol's function definition is void: define-slime-contrib

两盒软妹~` 提交于 2019-12-06 05:34:46
问题 I'm using emacs with lisp (using slime) for a short time...this work but today when I run it appear this message: eval-buffer: Symbol's function definition is void: define-slime-contrib means this than my slime contrib folder is not found? my .emacs is a disaster..sorry for this...I search inside all the folders and everyone look well... ;; SLIME ================================================== ' ;; Orden: M-x slime (setq inferior-lisp-program "/usr/bin/clisp") ; (add-to-list 'load-path "

What is wrong with my emacs/slime setup (compile-and-load/eval not working)?

荒凉一梦 提交于 2019-12-06 00:26:37
问题 I can run emacs and start slime (with M-x slime ). At this point I get the REPL in the inferior-lisp buffer and can run lisp there. But when I open up lisp code in another buffer none of the slime-goodness works ( C-x C-e , C-c C-k etc.) and I keep seeing this in the Messages buffer (with an increasing count-number): slime-connection: Not connected. Polling "/var/folders/B9/B9B5J15dH+aNt5J5gkROEk+++TI/-Tmp-/slime.3202".. (Abort with `M-x slime-abort-connection'.) [69 times] Makes me think

How can I get syntax highlighting for common lisp in SLIME's REPL?

我只是一个虾纸丫 提交于 2019-12-05 23:31:39
问题 I want to learn Common Lisp and have installed emacs (24.3) and slime via the emacs package manager. In the slime REPL syntax highlighting doesn't work. When I start Lisp-Mode (while in the slime REPL) on the other hand, the values of the expressions don't get printed anymore (when I type, say "Hello World" and hit enter I get a new line instead of the value of the expression. (If I open lisp files syntax highlighting works) 回答1: this works for me (http://compgroups.net/comp.emacs/tweaking

Why does REPL treat clojure.core/doc as a var?

邮差的信 提交于 2019-12-05 09:09:59
I'm trying to get documentation using the Clojure doc function, but can't get it recognized from the REPL (I'm using Emacs and SLIME). The following sequence describes what's going on (error message follows immediately after each line): gaidica.core> (doc first) ; Evaluation aborted. Unable to resolve symbol: doc in this context [Thrown class java.lang.Exception] gaidica.core> (clojure.core/doc first) ; Evaluation aborted. No such var: clojure.core/doc [Thrown class java.lang.Exception] user> (clojure.core/doc first) ; Evaluation aborted. No such var: clojure.core/doc [Thrown class java.lang

How can I define the address that swank server should listen to?

≡放荡痞女 提交于 2019-12-05 07:34:16
There is no argument for setting the address to bind to when starting swank server: * (describe 'swank:create-server) => ... Lambda-list: (&KEY (PORT DEFAULT-SERVER-PORT) (STYLE *COMMUNICATION-STYLE*) (DONT-CLOSE *DONT-CLOSE*) (CODING-SYSTEM *CODING-SYSTEM*)) ... How can I do it? Bind swank::*loopback-interface* to a string containing the ip address for the swank server. It defaults to the localhost ("127.0.0.1"). For security, take care that the swank address is not wide open to the world as it would leave the computer vulnerable for intrusion. If the goal is to access swank from another