[slime-devel] Re: swank:eval-string in wrong package?

Peter Seibel peter at javamonkey.com
Mon Mar 15 17:28:02 UTC 2004


Helmut Eller <e9626484 at stud3.tuwien.ac.at> writes:

> Peter Seibel <peter at javamonkey.com> writes:
>
>> According to the doc string for SWANK:EVAL-STRING, the string is
>> supposed to be read and evaluated in the buffer's package. But because
>> SWANK:READ-FORM binds *PACKAGE* to *SWANK-IO-PACKAGE* this doesn't
>> seem to happen. Am I missing something?
>
> You are right.  The docstring isn't quite correct.  We could probably
> remove one level of printing/reading by passing a form instead of the
> string.  We could then rename the function to EVAL-FOR-EMACS.

Hmmm. I'm not sure that's a good idea--I was looking at this because I
specifically needed to evaluate a form containing symbols I grabbed
from my emacs buffer. But I need those to be read by CL in the proper
package. Given the emacs s-exps and CL s-exps are *not* exactly the
same it seems better to let the communication between emacs and CL be
via strings. Or maybe I misunderstand you.

-Peter

-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp





More information about the slime-devel mailing list