slime

What does #+#. mean in lisp?

久未见 提交于 2019-12-21 06:56:52
问题 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 #+#.(swank-backend::sbcl-with-new-stepper-p) Perhaps this will make it more googleable : pound plus pound // hash plus hash symbol // octothorp plus octothorp 回答1: That's pretty rare to see. #+clim clim:+red+ #-clim mygraphics:+red+ above means that the reader returns

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

妖精的绣舞 提交于 2019-12-20 09:56:26
问题 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 any 'swank-SOMETHING_ELSE' for other lisp like implementations? For example, swank-clisp? Do I need 'swank-clojure' for using SLIME/Clojure with 'M-x slime'? ADDED I found this link pretty useful. 回答1: SLIME and swank form a client server

Using clojure.contrib functions in slime REPL

旧街凉风 提交于 2019-12-18 19:01:02
问题 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 this to my code results in the file being unable to load with an "Unable to resolve symbol" error for any function from the trace namespace. I use leiningen 'lein

Using clojure.contrib functions in slime REPL

蓝咒 提交于 2019-12-18 19:00:03
问题 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 this to my code results in the file being unable to load with an "Unable to resolve symbol" error for any function from the trace namespace. I use leiningen 'lein

Running Clojure and other Lisp at the same time on Emacs

风格不统一 提交于 2019-12-18 13:30:49
问题 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 somewhere, I try to use Clojure by adding this code. (add-to-list 'load-path "~/clojure/clojure-mode") (setq inferior-lisp-program "/Users/smcho/bin/clj") ################

slime prints my (format …) calls only when called function ends

走远了吗. 提交于 2019-12-17 17:33:32
问题 I have emacs + sbcl + slime installed. I have this function defined (defun jugar () (let* ((nodoActual *nodo-inicial*) (estadoActual (nodo-estado nodoActual)) (timeStart nil) (timeEnd nil) ) (loop while (not (es-estado-final estadoActual)) do (setf *hojas* 0) (setf timeStart (get-universal-time)) (setf nodoActual (decision-minimax nodoActual *profundidad* timeStart)) (setf timeEnd (get-universal-time)) (setf estadoActual (nodo-estado nodoActual)) (imprime-en-fichero estadoActual) (format t

Emacs (Cocoa Emacs) vs Aquamacs for running Clojure on Mac OS X

谁都会走 提交于 2019-12-17 15:35:55
问题 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 Is it possible to install Clojure on Aquamacs? Or, can you guess why Clojure on Aquamacs doesn't work? Is it normal that Emacs and Aquamacs can't share the same ELPA? Is it possible to use ELPA to install Conjure on Emacs/Aquamacs? I was told that one can use 'lein swank' to run as a server, do you know how to do that?

Common Lisp Package and Module Management [closed]

醉酒当歌 提交于 2019-12-13 09:16:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am currently trying to understand how Common Lisp manages its packages and modules. Consider this code: (in-package :cl-user) (ql:quickload :cl-who) (ql:quickload :hunchentoot) (ql:quickload :parenscript) (defpackage :retro-games (:use :cl :cl-who :hunchentoot :parenscript)) (in

Jump to function definition in Emacs by mouse-click

邮差的信 提交于 2019-12-13 01:25:16
问题 Using Emacs + Common Lisp (SBCL) + Slime, is there a quick way to jump to the definition of a function (defun ...) without typing (find-function) the name of the function? I am looking for an similar solution as often provided in Eclipse: Strg + (left-mouse-click on function call). 回答1: In Emacs: With point on the function whose definition you want to visit, hit C-x 5 F ( find-function-other-frame ). You can also bind find-function , find-function-other-window , or find-function-other-frame

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

时光总嘲笑我的痴心妄想 提交于 2019-12-12 17:16:09
问题 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 emacs/leinigen as asked and answered here. (doseq [p (.getURLs (java.lang.ClassLoader/getSystemClassLoader))] (println (.getPath p))) /Users/smcho/bin/leiningen