Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Emacs Problem

Name: Anonymous 2012-03-04 13:34

How do I send information from Emacs/ELisp into SBCL running under Slime?

Name: Anonymous 2012-03-04 13:43

One of the following is true:
1. Your an idiot
2. IHBT

Name: Anonymous 2012-03-04 13:43

What kind of information? Just read SLIME documentation or source code if you want to know how it does something.

Name: Anonymous 2012-03-04 15:10

>>3
What kind of information?
The name of a file I open in Emacs through C-x C-f.

Name: Anonymous 2012-03-04 15:10

>>2
Sorry. Emacs is just too hard for me.

Name: Anonymous 2012-03-04 15:15

>>4
You can just type it in again.

What's that? You expect your computer to remember data for you??? PREPOSTEROUS.

Name: Anonymous 2012-03-04 15:26

>>6
You can just type it in again.
That is how they did it in the time of Commodore Basic and MSDOS.

http://www.sjbaker.org/wiki/index.php?title=The_History_of_The_Teapot
some of the early pioneers of computer graphics could type in the teapot from memory.

Name: Anonymous 2012-03-04 15:42

I typically highlight code that I want to enter into the interpreter, and then copy paste needed chunks. I used to wonder if there was a way to send a stream of data to another process that was reading from stdin. But it would be about as convenient as copy paste, so, I donno. I would look into it if I didn't use a window system. I guess you could write the code to a temporary file and then load the temporary file from the interpreter.

Name: Anonymous 2012-03-04 17:04

Don't. Use Vim.

Name: Anonymous 2012-03-04 17:22

I see nobody here knows how to program.

>>1
The easiest and most sensible thing to do is to send expressions instead of arbitrary text. To do this, position the cursor after the expression you want to evaluate and type C-x C-e (you should know this notation by now).

This is covered in the SLIME documentation and tutorials. Please read them.

Name: Anonymous 2012-03-04 18:12

HOLY FUCKING DOGSHIT LOOK AT MY PRIME TEXAN DUB STEAK

Name: Anonymous 2012-03-05 0:00

>>10
C-x C-e evals inside ELisp, not inside Slime.

Name: Anonymous 2012-03-05 0:15

Don't use Vim.
Good advice.

Name: Anonymous 2012-03-05 0:53

>>12
The SLIME keymap binds it to slime-eval-last-expression.

Name: Anonymous 2012-03-05 1:53

>>14
Works like a charm! Thank you.

Name: Anonymous 2012-03-05 7:47

>>4
If you want to load that file to slime it's C-c C-k (compile and load).

Name: Anonymous 2012-03-05 9:24

>>10,14
You have a serious problem with answering what people ask but not telling them what they should know.

Name: Anonymous 2012-03-05 9:58

>>17
I take the C approach. The programmer knows what the fuck he is doing. All you need to do is provide what they ask for. If they shoot themselves in the foot, its just darwinism at work. If they pull off something really clever with this knowledge you don't come out looking like an overprotective braindead helicopter mom.

Name: Anonymous 2012-03-05 12:29

>>18
That approach is retarded. The Lisp way is better. That's where you constantly tell people that they're wrong and they should feel kind of bad about it. And then don't actually help them learn from their mistakes.

Name: Anonymous 2012-03-05 13:54

Easy
Mode to
Acquire
Carpal-tunnel
Syndrome

Name: Anonymous 2012-03-05 14:56

>>22
emacs doubles

Name: Anonymous 2012-03-05 15:08

Emacs is shit

Name: Anonymous 2012-03-05 17:13

>>20
M-x vipper-mode

Don't change these.
Name: Email:
Entire Thread Thread List