[slime-devel] rewriting commands
Andras Simon
andras at renyi.hu
Tue Jul 24 16:27:14 UTC 2007
On Tue, 24 Jul 2007, Jens Teich wrote:
> Tamas K Papp wrote:
> > I am trying to find out how to do this right. Suppose I write a
> > command on the repl and press enter:
> >
> > CL-USER> (1+ 2)
> > 3
> >
> > then I go back and edit that line, trying to reuse part of what I
> > wrote (in this case, I type "(describe " before and ")" after the
> > previous expression, then press ENTER, ENTER:
> >
> > CL-USER> (describe (1+ 2))
> > 3
> > CL-USER> (1+ 2))
> >
> > and I end up with an incomplete expression (as above) and an error.
> >
> > How can I reuse edited lines from the REPL? Copy & paste with C-K C-Y
> > works, but there must be a better way.
> >
>
> M-p
Or: instead of editing it in place, press Return when the cursor is on the
line that you want to edit. This will copy the line to the prompt, and you can
edit it there.
Andras
More information about the slime-devel
mailing list