409 questions
2
votes
1
answer
67
views
Common Lisp step-by-step debugging with SBCL and SLIME
I tried to debug the function below (find-3rd-largest), and wanted to execute expressions step by step from (break), as I did for other programming languages.
So, I compiled the function with C-u C-c ...
2
votes
2
answers
74
views
Is there a way to get the effect of SLIME-REPL-CLEAR-BUFFER within Common Lisp
I once read somewhere, that we can set a global Emacs variable to T (or NIL, I don't know) in order to (roughly) make Emacs accessible from Common Lisp.
This information was in company with the ...
0
votes
0
answers
168
views
Common Lisp GUI application works when started from terminal, but not from SLIME
I'm trying to build a GUI for my application using cl-raylib, which provides Common Lisp bindings for raylib. I cloned the repository for cl-raylib into .quicklisp/local-projects/. I am able to run ...
2
votes
0
answers
86
views
How do I write a string to the Slime REPL's input buffer?
I'm writting a shell in Common Lisp that reads command from the user's input and returns the output after executing. When the user types a "meta" command I want to write a placeholder so ...
0
votes
1
answer
63
views
Change display of floating point values in debugger
When I debug in Slime and inspect the value of a floating point variable, I see something like
6.8998337e-4
However, I find that very hard to read and would prefer
0.00068998337
How can I achieve ...
0
votes
1
answer
114
views
Trouble Running Lisp Script in Emacs with SBCL
I'm encountering an issue when trying to run a Lisp script in Emacs with SBCL. I have the following directory structure:
- SBCL: /home/user/.roswell/impls/x86-64/linux/sbcl-bin/2.3.8/bin/sbcl
- Lisp ...
4
votes
1
answer
193
views
Passing SBCL options to slime?
How do I increase the stack size in a slime session.
I can do it in the terminal with:
$> sbcl --control-stack-size 5
How do I do this in slime?
0
votes
1
answer
138
views
Suppressing the Debugger in SBCL with Emacs and SLIME?
Putting in the following code into ~/.sbclrc allows me to receive a simplified error message without diving into the debugger (which I find a bit irritating) when using the SBCL REPL from the command ...
1
vote
2
answers
738
views
How can I exit a program running in the repl in common lisp?
when I run a function in the repl, the repl becomes a place to input user values.
For example:
(defun asking-questions ()
(let ((firstname (prompt-read "What is the firstname of the contact?&...
1
vote
0
answers
84
views
Slime-autodoc does not work anymore after use of ASDF (Emacs, SBCL, Common Lisp)
I am facing a strange behaviour. When using SBCL (Common Lisp) within Emacs via Slime, after ASDF is used, slime-autodoc does not propose arguments list for functions/macros any more.
I am working ...
0
votes
2
answers
594
views
Lisp - Functions passed into another function as arguments and called from within a Let
I am learning Lisp and, just for practice/education, am trying to define a function that will
ask the user to enter a number until they enter an integer > 0 [copied from Paul Graham's Ansi Common ...
0
votes
0
answers
75
views
How do you get the *slime-source* buffer to appear?
I was doing something in SLIME, and an error occurred. While trying to select the ABORT restart, I made a typo, and instead of the debugger closing, a new buffer named *slime-source* appeared. It ...
1
vote
0
answers
105
views
Slime give Connection broken by remote peer when open large file with cl-json
When using emacs+slime:
(cl-json:decode-json-from-source (pathname "/path/to/test.json"))
will give
Connection broken by remote peer when open large file
when open large file(14M)
file ...
2
votes
2
answers
347
views
How to get the filename where a function is defined in Common Lisp?
I would like to get the name of the file where a particular function or macro definition was last written, for various documentation & testing purposes?
I have posted an answer that works well ...
4
votes
2
answers
306
views
Loading a local file in a remote Lisp with swank/slime
Say that I am connected to a remote Lisp using swank/slime. I have a data file on my local machine on disk or, perhaps, in an emacs buffer. I want to process this file using the remote Lisp.
I can ...
2
votes
1
answer
404
views
In Slime's inspector, after inspecting an element, how can I get back to the list of objects?
I am using Slime (Emacs) and Common Lisp (SBCL). After evaluating an expression, the REPL returns a list of CL objects:
(#<BOOKMARK-ENTRY {1009AFB963}> #<BOOKMARK-ENTRY {1009AFD5A3}>
...
7
votes
2
answers
544
views
How to explore a Common Lisp image
Is there a way to explore the current state of a Common Lisp image (i.e. the loaded packages, available symbols, etc.)?
I know about the command (apropos "foo"), but I would like to see the ...
3
votes
1
answer
139
views
How to interpret this stack frame in my control stack?
I am trying to learn Common Lisp with the book Common Lisp: A gentle introduction to Symbolic Computation. In addition, I am using SBCL, Emacs, and Slime.
In the end of chapter 8, the author presents ...
1
vote
2
answers
349
views
Is there a way to find out how the primitive functions (built-in) where exactly defined inside SBCL?
I am learning Common Lisp using Emacs, SBCL and Slime.
I would like to know exactly what is the code definition of the built-in functions.
I know how to use (documentation ...) and (describe ...). ...
0
votes
1
answer
179
views
How do I solve name service error in sbcl with slime?
I've recently installed SLIME mode and I can't get it to work. Upon startup (M-x slime) it throws out this error:
This is SBCL 2.1.1, an implementation of ANSI Common Lisp.
More information about SBCL ...
2
votes
0
answers
241
views
Emacs slime: SBCL/swank error after updating Arch linux
After updating Arch I get the following error when I try to start slime in Emacs:
* ; loading #P"/home/upgrd/quicklisp/dists/quicklisp/software/slime-v2.24/swank-loader.lisp"
;
; caught ...
1
vote
0
answers
1k
views
Doom Emacs: Don't want auto complete in Slime-REPL
This question is exactly opposite to the below question.
Stack Overflow.
When I use Slime inside Doom Emacs, I am not able to type
(defun square (x)
(* x x))
By the time I type (defun square (x)), ...
0
votes
0
answers
149
views
Format not working in emacs + slime + sbcl
I'm running emacs + slime + sbcl on an iMac High Sierra version 10.13.6. When I evaluate (format t "This is a test ~%) in the slime-repl sbcl, sbcl simply returns nil without printing the output....
3
votes
0
answers
390
views
How do I set up a vertically split terminal for the vim-slime plugin?
For the vim-slime plugin, these are my settings:
let g:slime_target = "vimterminal"
let g:slime_paste_file = "$HOME/.slime_paste"
let g:slime_vimterminal_cmd = "sbcl --...
3
votes
1
answer
950
views
In Slime REPL (GNU EMACS), what is the shortcut to clear the current input
In Slime, I would like to clear the input I have currently typed into the REPL topline. What is the shortcut?
For example, if I type the below, it is missing one parenthesis and will not execute. How ...