* Help on Slime
@ 2008-03-24 0:04 Lorenzo Isella
2008-03-24 7:26 ` Andrea Vettorello
2008-03-24 8:18 ` Thierry Volpiatto
0 siblings, 2 replies; 4+ messages in thread
From: Lorenzo Isella @ 2008-03-24 0:04 UTC (permalink / raw)
To: help-gnu-emacs
Dear All,
I am completely new to LISP (I want to learn it out of curiosity and
maybe one day it will be useful to me) and surely not very experienced
about using emacs.
I am running Debian testing on my box and installed both emacs and slime
from Debian repositories.
I am a bit puzzled: if I create a file test.lisp with the trivial content:
(+ 1 2)
and then I load it then both the lisp mode and slime mode are
automatically enabled.
However, if I try positioning the cursor and using C-x C-e I get the
message
Not connected.
If I disable the slime (M-x slime-mode), then C-x C-e returns the
obvious value 3.
What am I doing wrong? What I am seeing does not look much like the
video at:
http://www.unixuser.org/~euske/vnc2swf/slime.html
In case it matters, I can post the .emacs file I am using.
Many thanks
Lorenzo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help on Slime
[not found] <mailman.9365.1206317071.18990.help-gnu-emacs@gnu.org>
@ 2008-03-24 7:05 ` Niels Giesen
0 siblings, 0 replies; 4+ messages in thread
From: Niels Giesen @ 2008-03-24 7:05 UTC (permalink / raw)
To: help-gnu-emacs
Lorenzo Isella <lorenzo.isella@gmail.com> writes:
> Dear All,
> I am completely new to LISP (I want to learn it out of curiosity and maybe one
> day it will be useful to me) and surely not very experienced about using emacs.
> I am running Debian testing on my box and installed both emacs and slime from
> Debian repositories.
Welcome to this little known part of the world!
> I am a bit puzzled: if I create a file test.lisp with the trivial content:
>
> (+ 1 2)
>
> and then I load it then both the lisp mode and slime mode are automatically
> enabled.
> However, if I try positioning the cursor and using C-x C-e I get the message
>
> Not connected.
To run slime type M-x slime RET. Note that you might have to set
`inferior-lisp-program' if slime cannot the lisp set in there. For instance, my
setting is:
(setq inferior-lisp-program "sbcl --noinform")
... but I do not know what dependency slime declares under Debian, if any. Might
be sbcl, cmucl or even clisp.
>
> If I disable the slime (M-x slime-mode), then C-x C-e returns the obvious value
> 3.
This is the Emacs lisp interpreter evaluating the expression. To know what
command a keychord invokes, prepend it with C-h k. In your example, looking at
the output of C-h k C-x C-e in both modes would have revealed that two distinct
commands are being invoked.
On a trivial level as this, CL and emacs lisp can understand each other
perfectly. Emacs lisp (or elisp) is the 'extension language' of Emacs and quite
similar to Common Lisp until it comes to bindings, reader macros and so
forth. It has its own REPL at M-x ielm RET in case you are interested in hacking
Elisp.
> What am I doing wrong? What I am seeing does not look much like the video at:
>
> http://www.unixuser.org/~euske/vnc2swf/slime.html
>
> In case it matters, I can post the .emacs file I am using.
> Many thanks
>
> Lorenzo
>
>
>
Enjoy exploring LISP/Emacs,
niels.
--
http://niels.kicks-ass.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help on Slime
2008-03-24 0:04 Lorenzo Isella
@ 2008-03-24 7:26 ` Andrea Vettorello
2008-03-24 8:18 ` Thierry Volpiatto
1 sibling, 0 replies; 4+ messages in thread
From: Andrea Vettorello @ 2008-03-24 7:26 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, Mar 24, 2008 at 1:04 AM, Lorenzo Isella
<lorenzo.isella@gmail.com> wrote:
[...]
> I am a bit puzzled: if I create a file test.lisp with the trivial content:
>
> (+ 1 2)
>
> and then I load it then both the lisp mode and slime mode are
> automatically enabled.
> However, if I try positioning the cursor and using C-x C-e I get the
> message
>
> Not connected.
>
> If I disable the slime (M-x slime-mode), then C-x C-e returns the
> obvious value 3.
I'm confident that's the Emacs internal Lisp interpreter.
> What am I doing wrong? What I am seeing does not look much like the
> video at:
You should start the SLIME REPL with "M-x slime" (and you need to
install one of the supported Lisp environments, according to the
package description SBCL, CMUCL, OpenMCL and some versions of CLISP
and Lispworks).
If you are interested to know more, a good introductory book is Peter Seibel's
"Practical Common Lisp": http://www.gigamonkeys.com/book/
--
Andrea
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help on Slime
2008-03-24 0:04 Lorenzo Isella
2008-03-24 7:26 ` Andrea Vettorello
@ 2008-03-24 8:18 ` Thierry Volpiatto
1 sibling, 0 replies; 4+ messages in thread
From: Thierry Volpiatto @ 2008-03-24 8:18 UTC (permalink / raw)
To: Lorenzo Isella; +Cc: help-gnu-emacs
Lorenzo Isella <lorenzo.isella@gmail.com> writes:
> Dear All,
> I am completely new to LISP (I want to learn it out of curiosity and
> maybe one day it will be useful to me) and surely not very experienced
> about using emacs.
> I am running Debian testing on my box and installed both emacs and
> slime from Debian repositories.
> I am a bit puzzled: if I create a file test.lisp with the trivial content:
>
> (+ 1 2)
>
> and then I load it then both the lisp mode and slime mode are
> automatically enabled.
> However, if I try positioning the cursor and using C-x C-e I get the
> message
>
> Not connected.
>
> If I disable the slime (M-x slime-mode), then C-x C-e returns the
> obvious value 3.
> What am I doing wrong? What I am seeing does not look much like the
> video at:
>
> http://www.unixuser.org/~euske/vnc2swf/slime.html
>
> In case it matters, I can post the .emacs file I am using.
> Many thanks
>
> Lorenzo
>
>
>
First you have to start slime with M-x slime RET.
Then you can do on your file M-x slime-eval-buffer RET.
Or M-x slime-eval-last-expression RET (with-point at the end of sexp)
(C-x C-e)
You will have the result in mini-buffer.
--
A + Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-24 8:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.9365.1206317071.18990.help-gnu-emacs@gnu.org>
2008-03-24 7:05 ` Help on Slime Niels Giesen
2008-03-24 0:04 Lorenzo Isella
2008-03-24 7:26 ` Andrea Vettorello
2008-03-24 8:18 ` Thierry Volpiatto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).